/* ========================================
   AUTH PAGES (Login & Register)
   ======================================== */

/* ===== المتغيرات ===== */
:root {
    --primary: #231047;
    --primary-light: #3a1a75;
    --gold: #ffb600;
    --gold-light: #ffd966;
    --bg-light: #f8f5ff;
    --white: #ffffff;
    --gray-light: #e0e0e0;
    --gray-text: #666;
}

/* ===== الخلفية ===== */
.auth-page {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 50px 0;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,182,0,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== الحاوية ===== */
.auth-container {
    position: relative;
    z-index: 1;
}

/* ===== البطاقة ===== */
.auth-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 182, 0, 0.2);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== الهيدر ===== */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    display: inline-block;
    background: var(--primary);
    padding: 15px 40px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 2px solid var(--gold);
}

.auth-logo a {
    color: var(--white);
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
}

.auth-logo span {
    color: var(--gold);
}

.auth-badge {
    background: var(--gold);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.auth-title {
    color: var(--primary);
    font-size: 18px;
    font-weight: 500;
    margin-top: 10px;
}

/* ===== الحقول ===== */
.form-group {
    margin-bottom: 20px;
}

.input-group {
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 182, 0, 0.2);
}

.input-group .form-control {
    border: none;
    padding: 12px 15px;
    font-size: 15px;
}

.input-group .form-control:focus {
    box-shadow: none;
}

.input-group-text {
    background: var(--bg-light);
    border: none;
    padding: 0 15px;
}

.input-group-text i {
    color: var(--primary);
    font-size: 18px;
}

/* ===== الشروط ===== */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-left: 10px;
    accent-color: var(--gold);
    cursor: pointer;
}

.checkbox-label {
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* ===== الأزرار ===== */
.btn-auth {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 12px;
    width: 100%;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}

.btn-auth:hover {
    background: var(--gold);
    color: var(--primary);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 182, 0, 0.4);
}

.btn-auth i {
    margin-left: 10px;
}

/* ===== الروابط ===== */
.auth-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-link a:hover {
    color: var(--gold);
}

.auth-link a i {
    margin: 0 5px;
}

/* ===== روابط إضافية ===== */
.forgot-password {
    text-align: center;
    margin-top: 15px;
}

.forgot-password a {
    color: var(--gray-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.forgot-password a:hover {
    color: var(--gold);
}

/* ===== التنبيهات ===== */
.alert {
    border-radius: 12px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-right: 4px solid var(--gold);
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-right: 4px solid var(--gold);
}

.alert-danger ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ===== الأشكال العائمة ===== */
.floating-shape {
    position: absolute;
    background: rgba(255, 182, 0, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    right: -100px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .auth-card {
        padding: 25px;
        margin: 15px;
    }
    
    .auth-logo a {
        font-size: 24px;
    }
    
    .btn-auth {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .auth-card {
        padding: 20px;
        margin: 10px;
    }
    
    .auth-logo {
        padding: 10px 25px;
    }
    
    .auth-logo a {
        font-size: 20px;
    }
    
    .input-group .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
}