/* تنظیمات پایه */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    background-color: #f3f4f6;
}

/* استایل تصویر پس‌زمینه */
.background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

/* کارت شیشه‌ای حرفه‌ای با عرض کمتر و اصلاح‌شده */
.login-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.35); 
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    width: 100%;
    max-width: 370px; 
    padding: 45px 32px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.03),
        0 20px 50px rgba(0, 0, 0, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    text-align: center;
    animation: slideUpIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* استایل متون با فونت گوگل Inter */
.title {
    font-family: 'Inter', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #0f172a; 
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #334155;
    font-weight: 500;
    margin-bottom: 4px;
    direction: ltr;
    letter-spacing: -0.2px;
}

.tagline {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 35px;
    direction: ltr;
    letter-spacing: 0.2px;
}

/* استایل فیلدهای ورودی مینیمال (Inputs) */
.input-group {
    margin-bottom: 16px;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 14px 20px;
    font-family: 'Shabnam', sans-serif;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    /* اندازه فونت متن تایپ شده کوچک‌تر شد */
    font-size: 12.5px; 
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
    color: #0f172a;
    text-align: right;
}

.password-wrapper input {
    padding-left: 45px; 
}

/* اندازه فونت متن راهنما (نام کاربری و رمز ورود) کوچک‌تر شد */
.input-group input::placeholder {
    color: #94a3b8;
    font-size: 12px; 
    font-weight: 400;
}

.input-group input:focus {
    background: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.05);
}

/* استایل کانتینر آیکون چشم SVG */
.toggle-password {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    z-index: 3;
}

.toggle-password svg {
    width: 20px;
    height: 20px;
    color: #64748b;
    transition: color 0.2s ease;
}

.toggle-password:hover svg {
    color: #0f172a;
}

/* استایل پیغام خطا */
.error-msg {
    color: #e11d48;
    font-family: 'Shabnam', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
    margin-top: -8px;
    margin-bottom: 12px;
    min-height: 18px;
}

/* استایل بخش جدید گزینه‌های فرم */
.form-options {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: -4px;
    margin-bottom: 20px;
    font-family: 'Shabnam', sans-serif;
    font-size: 12px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

/* شخصی‌سازی چک‌باکس مینی‌مال */
.remember-me input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.remember-me input[type="checkbox"]:checked {
    background-color: #0f172a;
    border-color: #0f172a;
}

.remember-me input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 1px;
    left: 4px;
}

/* خط جداکننده وسط صفحه */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 22px 0;
    color: #475569;
    font-family: 'Shabnam', sans-serif;
    font-size: 13px;
    font-weight: bold;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.divider:not(:empty)::before {
    margin-left: .8em;
}

.divider:not(:empty)::after {
    margin-right: .8em;
}

/* دکمه مشکی مات */
.submit-btn {
    width: 100%;
    background-color: #0f172a;
    color: #ffffff;
    font-family: 'Shabnam', sans-serif;
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 5px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.submit-btn:hover {
    background-color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
}

.submit-btn:active {
    transform: translateY(1px);
}



/* ==========================================================================
   استایل اختصاصی لایه شیشه‌ای مایع خوش‌آمدگویی صفحه لاگین
   ========================================================================== */
#welcome-glass-modal.glass-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    display: none;
    justify-content: center !important;
    align-items: center !important;
    z-index: 999999 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#welcome-glass-modal.glass-overlay.show {
    display: flex !important;
    opacity: 1 !important;
}

#welcome-glass-modal .glass-modal-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 24px !important;
    text-align: center !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04) !important;
    transform: scale(0.85);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#welcome-glass-modal.glass-overlay.show .glass-modal-card {
    transform: scale(1) !important;
}
