﻿/* ========== Glassmorphism + Light Sweep ========== */

/* حذف bg-white و جایگزینی با گرادیانت */
.pg-auth {
    background: linear-gradient(135deg, #e9efff 0%, #f8faff 100%) !important;
    overflow: hidden;
    position: relative;
}

    /* انیمیشن نور پس‌زمینه */
    .pg-auth::before {
        content: "";
        position: fixed;
        width: 700px;
        height: 700px;
        background: radial-gradient(circle, rgba(129, 140, 248, 0.25) 0%, transparent 70%);
        top: -20%;
        left: 50%;
        transform: translateX(-50%);
        animation: sweepLight 10s ease-in-out infinite alternate;
        z-index: 0;
        filter: blur(50px);
    }

@keyframes sweepLight {
    0% {
        top: -20%;
        opacity: 0.4;
    }

    100% {
        top: 70%;
        opacity: 0.15;
    }
}

/* تنظیمات عرض و مرکزچین کارت */
.nk-auth-body {
    max-width: 1050px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    position: relative;
    z-index: 1;
}

/* کارت شیشه‌ای */
.glass-card {
    background: rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    border-radius: 28px !important;
    box-shadow: 0 10px 45px rgba(31, 38, 135, 0.08);
    overflow: hidden;
}

/* چیدمان دوبخشی داخل کارت */
.glass-split {
    display: flex;
    direction: ltr; /* چپ: About ، راست: Form */
    align-items: stretch;
    min-height: 520px;
}

/* ===== پنل About (چپ) ===== */
.glass-about-panel {
    flex: 0 0 40%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    text-align: center;
    color: #1e293b;
}

.glass-about-inner {
    max-width: 320px;
}

.about-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-desc {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    color: #4f46e5;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
}

.about-contact {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    padding-top: 1rem;
    font-size: 0.9rem;
    color: #475569;
}

/* ===== پنل فرم (راست) ===== */
.glass-form-panel {
    flex: 1 1 60%;
    padding: 2.5rem 2.5rem;
    direction: rtl; /* فارسی */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    /* ورودی‌های شیشه‌ای */
    .glass-form-panel .form-control {
        background: rgba(255, 255, 255, 0.55) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        color: #1e293b !important;
    }

        .glass-form-panel .form-control:focus {
            background: rgba(255, 255, 255, 0.8) !important;
            border-color: rgba(102, 126, 234, 0.6) !important;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2) !important;
        }

    /* دکمه */
    .glass-form-panel .btn-primary {
        background: linear-gradient(135deg, #667eea, #764ba2) !important;
        border: none !important;
        border-radius: 14px;
        font-weight: 600;
        box-shadow: 0 6px 18px rgba(102, 126, 234, 0.5);
        transition: all 0.3s;
    }

        .glass-form-panel .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 26px rgba(102, 126, 234, 0.65);
        }

/* فوتر */
.auth-footer {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    color: #334155;
}

/* ========== واکنش‌گرایی ========== */
@media (max-width: 768px) {
    .glass-split {
        flex-direction: column;
        direction: rtl; /* ستونی: about بالا، فرم پایین */
    }

    .glass-about-panel {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
        padding: 2rem 1.5rem;
    }

    .glass-form-panel {
        padding: 2rem 1.5rem;
    }

    .about-title {
        font-size: 1.5rem;
    }
}

.nk-auth-body {
    position: relative;
    z-index: 1;
}
