/* ─── صفحه ورود ─── */
.auth-body {
    min-height: 100vh;
    background: var(--bg);
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.auth-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
}

.auth-page__bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #0f2744 0%, #1e3a5f 45%, #0f2744 100%);
}

.auth-page__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.auth-page__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: authOrbFloat 12s ease-in-out infinite;
}

.auth-page__orb--1 {
    width: 420px;
    height: 420px;
    background: var(--accent);
    top: -120px;
    right: -80px;
}

.auth-page__orb--2 {
    width: 360px;
    height: 360px;
    background: #38bdf8;
    bottom: -100px;
    left: -60px;
    animation-delay: -6s;
}

@keyframes authOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -15px) scale(1.05); }
}

.auth-shell {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: 960px;
    min-height: 560px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

.auth-brand-panel {
    flex: 1 1 42%;
    background: linear-gradient(160deg, rgba(14, 165, 233, 0.15) 0%, rgba(30, 58, 95, 0.4) 100%);
    border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 2.5rem;
    color: #fff;
    align-items: center;
}

.auth-brand-panel__inner {
    max-width: 320px;
}

.auth-brand-panel__logo {
    width: 4rem;
    height: 4rem;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, #38bdf8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}

.auth-brand-panel__title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-brand-panel__subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.auth-brand-panel__features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-brand-panel__features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.auth-brand-panel__features i {
    color: var(--accent);
    font-size: 1rem;
}

.auth-card-wrap {
    flex: 1 1 58%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
}

.auth-card {
    width: 100%;
    max-width: 380px;
}

.auth-card__header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-card__logo {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.auth-card__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.auth-card__hint {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
}

.auth-alert {
    border-radius: 10px;
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    border: none;
}

.auth-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.auth-label i {
    color: var(--accent);
    font-size: 0.95rem;
}

.auth-input {
    border-radius: 10px !important;
    border: 1.5px solid var(--border) !important;
    padding: 0.65rem 0.9rem !important;
    font-size: 0.9rem !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.15) !important;
}

.auth-password-wrap {
    position: relative;
}

.auth-password-wrap .auth-input {
    padding-inline-start: 0.9rem !important;
    padding-inline-end: 2.75rem !important;
}

.auth-password-toggle {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: 2.75rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0 10px 10px 0;
    transition: color 0.15s ease;
}

.auth-password-toggle:hover {
    color: var(--primary);
}

.auth-submit {
    border-radius: 10px !important;
    padding: 0.75rem 1.25rem !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.3);
}

.auth-submit:disabled {
    opacity: 0.85;
    cursor: wait;
}

.auth-card__footer {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.auth-recaptcha-note,
.auth-session-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.75rem;
}

@media (max-width: 991.98px) {
    .auth-shell {
        min-height: auto;
        max-width: 420px;
    }

    .auth-card-wrap {
        padding: 2rem 1.5rem;
    }
}
