/* ═══════════════════════════════════════════════════════════════
   ورود / احراز هویت — طراحی فانتزی دخترونه رسپانسیو
   ═══════════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Mikhak';
    src: url('/css/font/Mikhak.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    font-family: 'Mikhak', sans-serif !important;
    letter-spacing: 0;
    margin: 0;
    padding: 0;
}

/* ── صفحه اصلی ── */
.auth-page {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* ── پس‌زمینه متحرک ── */
.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
}

.auth-bg__orb--a { width: 600px; height: 600px; top: -200px; right: -180px; animation: authFloat 22s ease-in-out infinite; }
.auth-bg__orb--b { width: 500px; height: 500px; bottom: -180px; left: -160px; animation: authFloat 26s ease-in-out infinite reverse; }
.auth-bg__orb--c { width: 350px; height: 350px; top: 50%; left: 25%; animation: authFloat 30s ease-in-out infinite; }
.auth-bg__orb--d { width: 250px; height: 250px; top: 20%; left: 60%; animation: authFloat 18s ease-in-out infinite reverse; }

@keyframes authFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(35px, -30px) scale(1.08); }
    50% { transform: translate(-25px, 25px) scale(0.93); }
    75% { transform: translate(18px, 12px) scale(1.04); }
}

/* ── ذرات درخشان ── */
.sparkle-container {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    animation: sparkleFloat linear infinite;
}

.sparkle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
}

.sparkle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    width: 8px;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
}

@keyframes sparkleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-20vh) rotate(720deg); opacity: 0; }
}

/* تم تیره */
[data-theme-mode="dark"] .auth-page {
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 30%, #1f1145 60%, #0f0720 100%);
}

[data-theme-mode="dark"] .auth-bg__orb--a { background: radial-gradient(circle, rgba(236, 72, 153, 0.5), transparent 70%); }
[data-theme-mode="dark"] .auth-bg__orb--b { background: radial-gradient(circle, rgba(168, 85, 247, 0.4), transparent 70%); }
[data-theme-mode="dark"] .auth-bg__orb--c { background: radial-gradient(circle, rgba(244, 114, 182, 0.35), transparent 70%); }
[data-theme-mode="dark"] .auth-bg__orb--d { background: radial-gradient(circle, rgba(192, 132, 252, 0.3), transparent 70%); }

/* تم روشن */
[data-theme-mode="light"] .auth-page {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 30%, #f5d0fe 60%, #ede9fe 100%);
}

[data-theme-mode="light"] .auth-bg__orb--a { background: radial-gradient(circle, rgba(236, 72, 153, 0.3), transparent 70%); }
[data-theme-mode="light"] .auth-bg__orb--b { background: radial-gradient(circle, rgba(168, 85, 247, 0.25), transparent 70%); }
[data-theme-mode="light"] .auth-bg__orb--c { background: radial-gradient(circle, rgba(244, 114, 182, 0.2), transparent 70%); }
[data-theme-mode="light"] .auth-bg__orb--d { background: radial-gradient(circle, rgba(192, 132, 252, 0.2), transparent 70%); }

/* ── دکمه سوییچ تم ── */
.auth-theme-toggle {
    position: fixed;
    top: 1.25rem;
    inset-inline-end: 1.25rem;
    z-index: 30;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-theme-toggle:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 12px 40px rgba(236, 72, 153, 0.3);
    border-color: rgba(236, 72, 153, 0.5);
}

[data-theme-mode="light"] .auth-theme-toggle {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.3);
    color: #be185d;
}

/* ── لایوت اصلی ── */
.auth-split {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    width: 100%;
    max-width: 1100px;
    min-height: 640px;
    border-radius: 1.75rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: authCardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

[data-theme-mode="dark"] .auth-split {
    background: rgba(30, 15, 60, 0.6);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

[data-theme-mode="light"] .auth-split {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

@keyframes authCardIn {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── سمت تصویر ── */
.auth-visual {
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    overflow: hidden;
}

.auth-visual__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-visual__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
        rgba(139, 92, 246, 0.3) 0%,
        rgba(236, 72, 153, 0.4) 40%,
        rgba(30, 10, 60, 0.85) 100%);
}

.auth-visual__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    color: #fff;
}

.auth-visual__brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.auth-visual__logo {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ec4899, #a855f7, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.4);
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { box-shadow: 0 8px 32px rgba(236, 72, 153, 0.4); }
    50% { box-shadow: 0 8px 48px rgba(168, 85, 247, 0.6); }
}

.auth-visual__brand-name {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.auth-visual__tag {
    font-size: 0.75rem;
    opacity: 0.85;
    margin-top: 2px;
}

/* ── متن خوش‌آمد ── */
.auth-welcome {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-welcome__title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.auth-welcome__sub {
    font-size: 0.85rem;
    opacity: 0.85;
    line-height: 1.7;
    max-width: 320px;
    margin: 0 auto;
}

/* ── دستیار هوشمند ── */
.auth-guide {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.25rem;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    margin-top: 1.5rem;
}

.auth-guide__head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.auth-guide__bot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.4);
    animation: botPulse 2s ease-in-out infinite;
}

@keyframes botPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.auth-guide__name { font-weight: 700; font-size: 0.85rem; }
.auth-guide__status {
    font-size: 0.68rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.auth-guide__status .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    animation: authPulse 1.6s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

@keyframes authPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.auth-guide__body {
    padding: 1rem;
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    scrollbar-width: thin;
}

.auth-guide__body::-webkit-scrollbar { width: 4px; }
.auth-guide__body::-webkit-scrollbar-track { background: transparent; }
.auth-guide__body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

.msg { display: flex; gap: 0.55rem; align-items: flex-end; }

.msg__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.msg__bubble {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem 1rem 1rem 0.2rem;
    padding: 0.6rem 0.9rem;
    max-width: 82%;
    animation: msgIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.msg--typing .msg__bubble { display: flex; gap: 5px; align-items: center; }
.msg--typing .msg__bubble span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(236, 72, 153, 0.7);
    animation: typing 1.2s infinite;
}
.msg--typing .msg__bubble span:nth-child(2) { animation-delay: 0.2s; }
.msg--typing .msg__bubble span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(12px) scale(0.95); }
    to { opacity: 1; transform: none; }
}

.msg__txt { font-size: 0.82rem; line-height: 1.65; display: block; }
.msg__txt .hl { color: #f472b6; font-weight: 700; }
.msg__txt .ok { color: #34d399; font-weight: 700; }
.msg__txt .warn { color: #fbbf24; font-weight: 700; }
.msg__time { display: block; font-size: 0.6rem; opacity: 0.55; margin-top: 0.25rem; }

/* ═══════════════════════════════════════════════════════════════
   سمت فرم ورود
   ═══════════════════════════════════════════════════════════════ */

.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
}

[data-theme-mode="dark"] .auth-form-side { background: rgba(20, 10, 45, 0.4); }
[data-theme-mode="light"] .auth-form-side { background: rgba(255, 255, 255, 0.3); }

.auth-form-side .auth-card {
    width: 100%;
    max-width: 400px;
}

/* ── کارت فرم ── */
.auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

[data-theme-mode="dark"] .auth-card {
    background: rgba(30, 15, 60, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

[data-theme-mode="light"] .auth-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.06);
}

.auth-card__header {
    padding: 2rem 1.75rem 1.25rem;
    text-align: center;
    position: relative;
}

.auth-card__logo {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    margin: 0 auto 1rem;
    padding: 3px;
    background: linear-gradient(135deg, #ec4899, #a855f7, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 36px rgba(236, 72, 153, 0.35);
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.auth-card__logo-inner {
    width: 100%;
    height: 100%;
    border-radius: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

[data-theme-mode="dark"] .auth-card__logo-inner { background: #1a0a30; }
[data-theme-mode="light"] .auth-card__logo-inner { background: #fff; }

.auth-card__logo-inner img { width: 100%; height: 100%; object-fit: contain; }

.auth-card__title {
    font-weight: 800;
    font-size: 1.35rem;
    margin: 0;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme-mode="light"] .auth-card__title {
    background: linear-gradient(135deg, #be185d, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
}

.auth-card__subtitle {
    font-size: 0.82rem;
    color: var(--text-muted, #9ca3af);
    margin: 0.35rem 0 0;
    opacity: 0.8;
}

.auth-card__body { padding: 0 1.75rem 1.75rem; }

/* ── فیلدهای فرم ── */
.auth-field { margin-bottom: 1.15rem; }

.auth-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--default-text-color, #e2e8f0);
    margin-bottom: 0.45rem;
}

[data-theme-mode="light"] .auth-field label { color: #374151; }

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

.auth-input {
    width: 100%;
    height: 52px;
    padding: 0 3rem 0 1rem;
    border-radius: 14px;
    border: 2px solid rgba(168, 85, 247, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: var(--default-text-color, #e2e8f0);
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme-mode="light"] .auth-input {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(168, 85, 247, 0.25);
    color: #1f2937;
}

.auth-input::placeholder { color: var(--text-muted, #9ca3af); opacity: 0.6; }

.auth-input:focus {
    border-color: #ec4899;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.15), 0 0 20px rgba(236, 72, 153, 0.1);
    background: rgba(255, 255, 255, 0.1);
}

[data-theme-mode="light"] .auth-input:focus {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12), 0 0 20px rgba(236, 72, 153, 0.08);
}

.auth-input-icon {
    position: absolute;
    inset-inline-end: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #9ca3af);
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.3s;
}

.auth-input:focus ~ .auth-input-icon { color: #ec4899; }

.auth-password-toggle {
    position: absolute;
    inset-inline-start: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted, #9ca3af);
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.auth-password-toggle:hover {
    color: #ec4899;
    background: rgba(236, 72, 153, 0.1);
}

/* ── رمز عبور ── */
.auth-input--pw { padding-inline-start: 3.2rem; padding-inline-end: 3rem; }

.auth-password-toggle {
    inset-inline-start: 0.4rem;
    inset-inline-end: auto;
}

/* ── پیام خطا ── */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
    animation: authShake 0.45s ease;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    backdrop-filter: blur(8px);
}

[data-theme-mode="light"] .auth-alert {
    color: #dc2626;
    background: rgba(254, 226, 226, 0.8);
    border-color: #fecaca;
}

@keyframes authShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

/* ── چک‌باکس ── */
.auth-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.auth-remember input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid rgba(168, 85, 247, 0.3);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.auth-remember input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #ec4899, #a855f7);
    border-color: transparent;
}

.auth-remember input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

.auth-remember__label {
    font-size: 0.82rem;
    color: var(--text-muted, #9ca3af);
    user-select: none;
}

/* ── فراموشی رمز ── */
.auth-forgot {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #a855f7;
    text-decoration: none;
    transition: all 0.2s;
}

.auth-forgot:hover { color: #ec4899; text-decoration: underline; }

[data-theme-mode="light"] .auth-forgot { color: #7c3aed; }
[data-theme-mode="light"] .auth-forgot:hover { color: #be185d; }

/* ── دکمه ورود ── */
.auth-submit {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #6366f1 100%);
    background-size: 200% 200%;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 12px 36px rgba(236, 72, 153, 0.35);
    position: relative;
    overflow: hidden;
}

.auth-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.auth-submit:hover::before { left: 100%; }

.auth-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 48px rgba(236, 72, 153, 0.45);
    background-position: 100% 0;
}

.auth-submit:active { transform: translateY(0) scale(0.98); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-submit .spinner {
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: authSpin 0.7s linear infinite;
    display: none;
}

.auth-submit.loading .spinner { display: block; }
.auth-submit.loading .btn-text { margin-inline-start: 0.3rem; }

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

/* ── پایین کارت ── */
.auth-card__footer {
    padding: 1rem 1.75rem;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted, #9ca3af);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    opacity: 0.7;
}

/* ── راهنمای رمز ── */
.auth-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    font-size: 0.78rem;
    line-height: 1.7;
    border: 1px solid rgba(168, 85, 247, 0.2);
    background: rgba(168, 85, 247, 0.06);
    color: var(--default-text-color, #e2e8f0);
}

[data-theme-mode="light"] .auth-hint {
    color: #6b21a8;
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.2);
}

.auth-hint i { color: #a855f7; margin-top: 0.2rem; flex-shrink: 0; }
.auth-hint strong { display: block; margin-bottom: 0.15rem; }

/* ── پیام زیر فیلد ── */
.auth-field__hint {
    min-height: 20px;
    margin-top: 0.4rem;
    font-size: 0.72rem;
    color: var(--text-muted, #9ca3af);
    transition: color 0.25s;
}
.auth-field__hint.is-ok { color: #10b981; }
.auth-field__hint.is-warn { color: #f59e0b; }
.auth-field__hint.is-err { color: #ef4444; }

/* ═══════════════════════════════════════════════════════════════
   ریسپانسیو
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 920px) {
    .auth-split {
        grid-template-columns: 1fr;
        max-width: 480px;
        min-height: auto;
        margin: 1rem;
        border-radius: 1.5rem;
    }

    .auth-visual {
        min-height: 240px;
        max-height: 280px;
    }

    .auth-visual__img { object-position: top; }

    .auth-visual__content {
        justify-content: flex-start;
        gap: 0.8rem;
    }

    .auth-welcome { margin-top: 0.5rem; }
    .auth-welcome__title { font-size: 1.4rem; }
    .auth-welcome__sub { font-size: 0.78rem; }

    .auth-guide { display: none; }

    .auth-form-side {
        padding: 1.75rem 1.25rem;
    }

    .auth-card__header { padding: 1.5rem 1.25rem 1rem; }
    .auth-card__body { padding: 0 1.25rem 1.5rem; }
    .auth-card__footer { padding: 0.85rem 1.25rem; }
    .auth-card__logo { width: 60px; height: 60px; }
    .auth-card__title { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .auth-page { padding: 0; }

    .auth-split {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: 100dvh;
    }

    .auth-visual {
        min-height: 200px;
        max-height: 240px;
        padding: 1.25rem;
    }

    .auth-welcome__title { font-size: 1.2rem; }

    .auth-form-side {
        padding: 1.5rem 1rem;
        flex: 1;
    }

    .auth-card__header { padding: 1.25rem 1rem 0.75rem; }
    .auth-card__body { padding: 0 1rem 1.25rem; }
    .auth-card__logo { width: 54px; height: 54px; }
    .auth-card__title { font-size: 1.1rem; }
    .auth-input { height: 48px; font-size: 0.88rem; }
    .auth-submit { height: 50px; font-size: 0.92rem; }

    .auth-theme-toggle {
        top: 0.75rem;
        inset-inline-end: 0.75rem;
        width: 42px;
        height: 42px;
    }
}

@media (max-height: 640px) and (orientation: landscape) {
    .auth-page { align-items: flex-start; padding-top: 1rem; }

    .auth-split {
        min-height: auto;
        max-height: 95vh;
    }

    .auth-visual { min-height: 180px; max-height: 220px; }

    .auth-card__header { padding: 1rem 1.5rem 0.75rem; }
    .auth-card__logo { width: 48px; height: 48px; margin-bottom: 0.5rem; }
    .auth-card__body { padding: 0 1.5rem 1rem; }
    .auth-field { margin-bottom: 0.75rem; }
    .auth-input { height: 44px; }
    .auth-submit { height: 46px; }
}

/* ── انیمیشن ورود فیلدها ── */
.auth-field {
    animation: fieldIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.auth-field:nth-child(1) { animation-delay: 0.1s; }
.auth-field:nth-child(2) { animation-delay: 0.2s; }

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

/* ── حالت فوکوس زیبا روی کارت ── */
.auth-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(168, 85, 247, 0.3), rgba(99, 102, 241, 0.3));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.auth-card:hover::before { opacity: 1; }

/* ── حالت کاهش حرکت ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .auth-bg__orb { animation: none !important; }
    .sparkle { display: none; }
}
