/**
 * Auth Components CSS
 * Ù…Ù„Ù CSS Ù…ÙˆØ­Ù‘Ø¯ Ù„ØµÙØ­Ø§Øª: ØªØ³Ø¬ÙŠÙ„ Ø§Ù„Ø¯Ø®ÙˆÙ„ØŒ Ø§Ù„ØªØ³Ø¬ÙŠÙ„ØŒ Ø§Ù„Ù…Ù„Ù Ø§Ù„Ø´Ø®ØµÙŠ
 * Ù…Ø³ØªØ®Ø±Ø¬ Ù…Ù†: login.php, register.php, profile.php
 */

/* =============================================
   Auth Card (Premium Card)
   ============================================= */
.premium-card {
    background: var(--bg-card, #fff);
    border-radius: 24px;
    border: 1px solid var(--border-color, #f1f5f9);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-header-soft {
    background: transparent;
    padding: 2rem 2rem 1rem;
}

.auth-card-header {
    background: transparent;
    padding: 2.2rem 2rem 1.2rem;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-bottom: 1px solid var(--border-color, #f1f5f9) !important;
    margin-bottom: 1.5rem !important;
}

body.dark-mode .auth-card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* =============================================
   Glass Icon Box (Auth Pages Version)
   ============================================= */
.auth-page .glass-icon-box,
.premium-card .glass-icon-box {
    width: 64px;
    height: 64px;
    background: rgba(var(--bs-primary-rgb), 0.08) !important;
    border-radius: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--bs-primary) !important;
    margin-bottom: 1.2rem !important;
    /* Ø¥Ù„ØºØ§Ø¡ Ø£Ù†Ù…Ø§Ø· Ø§Ù„Ù€ Madrassa theme Ù„Ù„Ù€ glass-icon-box */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    transition: none !important;
}

.auth-page .glass-icon-box i,
.auth-page .glass-icon-box svg,
.premium-card .glass-icon-box i,
.premium-card .glass-icon-box svg {
    color: var(--bs-primary) !important;
    width: 32px !important;
    height: 32px !important;
}

.auth-page .glass-icon-box:hover,
.premium-card .glass-icon-box:hover {
    transform: none !important;
    background: rgba(37, 99, 235, 0.15) !important;
}

body.dark-mode .auth-page .glass-icon-box,
body.dark-mode .premium-card .glass-icon-box {
    background: rgba(96, 165, 250, 0.12) !important;
    border: 1px solid rgba(96, 165, 250, 0.2) !important;
}

body.dark-mode .auth-page .glass-icon-box i,
body.dark-mode .auth-page .glass-icon-box svg,
body.dark-mode .premium-card .glass-icon-box i,
body.dark-mode .premium-card .glass-icon-box svg {
    color: #60a5fa !important;
}

/* =============================================
   Form Styles
   ============================================= */
.modern-form {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.modern-form div.input {
    width: 100% !important;
    margin-bottom: 0;
}

.input-minimal-group {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100% !important;
    gap: 4px;
}

.input-minimal-group i,
.input-minimal-group svg {
    position: absolute;
    left: 16px;
    width: 14px !important;
    height: 14px !important;
    color: #94a3b8;
    pointer-events: none;
    z-index: 10;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

[dir="rtl"] .input-minimal-group i,
[dir="rtl"] .input-minimal-group svg {
    left: auto;
    right: 16px;
}

.minimal-input {
    width: 100% !important;
    display: block !important;
    padding: 14px 16px 14px 45px !important;
    background: #f8fafc;
    border: 1.5px solid #f1f5f9;
    border-radius: 14px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none !important;
    box-shadow: none !important;
    text-align: right !important;
    direction: rtl !important;
}

[dir="rtl"] .minimal-input {
    padding: 14px 45px 14px 16px !important;
}

.minimal-input:focus {
    background: #fff;
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.08) !important;
}

.form-label-centered {
    text-align: right;
    width: 100%;
    display: block;
    font-size: 13px;
}

[dir="ltr"] .form-label-centered {
    text-align: left;
}

/* =============================================
   Profile Avatar
   ============================================= */
.profile-avatar-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--bs-primary), #3b82f6);
    color: white;
    border-radius: 30px;
    font-size: 2.2rem;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================================
   Utility Classes â€” Border Radius
   ============================================= */
.rounded-12 { border-radius: 12px !important; }
.rounded-16 { border-radius: 16px !important; }
.rounded-20 { border-radius: 20px !important; }
.rounded-24 { border-radius: 24px !important; }

/* =============================================
   Utility Classes â€” Font Size
   ============================================= */
.fs-11 { font-size: 0.70rem !important; }
.fs-13 { font-size: 0.85rem !important; }
.fs-15 { font-size: 0.95rem !important; }
.fs-16 { font-size: 1rem !important; }

/* =============================================
   Utility Classes â€” Font Weight
   ============================================= */
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }

/* =============================================
   Backdrop Blur Utility
   ============================================= */
.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* =============================================
   Animation â€” Fade In
   ============================================= */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   Profile Page Cleanups (Anti-Inline Styles)
   ============================================= */
.profile-header-card {
    min-height: 200px;
    display: flex;
    align-items: center;
}

.profile-chevron-icon {
    width: 14px;
    height: 14px;
}

.profile-glass-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-icon-large {
    width: 40px;
    height: 40px;
}

.profile-icon-medium {
    width: 20px;
    height: 20px;
}

.profile-icon-small {
    width: 18px;
    height: 18px;
}

