/* =============================================
   ملف: assets/css/auth.css
   أنماط صفحات المصادقة
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', 'Poppins', sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
}

/* ربط الخطوط */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Tajawal:wght@400;700&display=swap');

/* الأنماط الأساسية */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    padding: 50px;
    max-width: 450px;
    width: 100%;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-family: 'Poppins', sans-serif;
    color: #2C3E6B;
    font-size: 28px;
    font-weight: 700;
}

.auth-header p {
    color: #6C8EBF;
    font-size: 14px;
    margin-top: 5px;
}

/* الحقول */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #2C3E6B;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: 'Tajawal', sans-serif;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #4A6FA5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.form-group input.error {
    border-color: #E74C3C;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* الأزرار */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2C3E6B, #4A6FA5);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Tajawal', sans-serif;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(44, 62, 107, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    padding: 10px 20px;
    background: #27AE60;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #219a52;
    transform: scale(1.05);
}

/* التنبيهات */
.alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #ffe5e5;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* الروابط */
.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.auth-link a {
    color: #4A6FA5;
    font-weight: 600;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* عناصر إضافية */
.telegram-box {
    background: #f0f7ff;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
    border: 2px dashed #4A6FA5;
}

.telegram-box .telegram-btn {
    display: inline-block;
    background: #0088cc;
    color: white;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.telegram-box .telegram-btn:hover {
    background: #006699;
    transform: scale(1.05);
}

/* تقدم قوة كلمة المرور */
.password-strength {
    margin-top: 5px;
    height: 4px;
    background: #e1e8ed;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s;
}

.password-strength-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* مؤشر الخطوات */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e1e8ed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #666;
    transition: all 0.3s;
}

.step-dot.active {
    background: #2C3E6B;
    color: white;
    transform: scale(1.1);
}

.step-dot.completed {
    background: #27AE60;
    color: white;
}

/* كود التحقق */
.code-display {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    font-size: 32px;
    font-weight: 700;
    color: #2C3E6B;
    letter-spacing: 5px;
    margin: 20px 0;
    border: 2px dashed #4A6FA5;
    text-align: center;
}

/* التوافق مع الجوال */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-header h1 {
        font-size: 22px;
    }
    
    .btn-primary {
        font-size: 16px;
        padding: 12px;
    }
}