* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tahoma', 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    direction: rtl;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    color: #667eea;
    font-size: 28px;
    margin-bottom: 10px;
}

.logo p {
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: 'Tahoma', 'Arial', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Tahoma', 'Arial', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 15px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #f8f9ff;
}

.btn-danger {
    background: #dc3545;
    color: white;
    margin-top: 20px;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.error {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #fcc;
}

.success {
    background: #efe;
    color: #3c3;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #cfc;
}

.warning {
    background: #fff8e1;
    color: #8a6d00;
    padding: 12px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    border: 1px solid #ffe082;
    line-height: 1.8;
}

.dashboard {
    text-align: center;
}

.user-info {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.user-info h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 20px;
}

.username-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #667eea;
}

.username-box span {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.btn-copy {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-copy:hover {
    background: #5568d3;
}

.code-section {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.code-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.code-display {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #667eea;
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-code {
    color: #999;
    font-size: 16px;
    font-weight: normal;
}

@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .username-box {
        flex-direction: column;
    }
}
