:root {
    --auth-deep: #0943a4;
    --auth-primary: #04a9f5;
    --auth-primary-soft: #e8f7ff;
    --auth-accent: #38bdf8;
    --auth-text: #0f172a;
    --auth-muted: #64748b;
    --auth-border: #cfe8f8;
    --auth-danger: #ef4444;
    --auth-success: #16a34a;
    --auth-surface: #ffffff;
    --auth-surface-muted: #f5fbff;
    --auth-card: #ffffff;
    --auth-link-bg: #f8fbff;
    --auth-gradient: linear-gradient(60deg, rgb(9, 67, 164) 0%, rgb(4, 169, 245) 100%);
    --auth-mobile-gradient: linear-gradient(180deg, #0943a4 0%, #04a9f5 38%, #f4f9ff 38%, #fff 100%);
    --auth-shadow: 0 16px 40px rgba(9, 67, 164, 0.14);
    --auth-radius: 18px;
    --auth-input-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 20px rgba(4, 169, 245, 0.08);
    --auth-alert-danger-bg: #fef2f2;
    --auth-alert-danger-text: #b91c1c;
    --auth-alert-danger-border: #fecaca;
    --auth-alert-success-bg: #f0fdf4;
    --auth-alert-success-text: #15803d;
    --auth-alert-success-border: #bbf7d0;
    --auth-alert-info-text: #0369a1;
    --auth-alert-info-border: #bae6fd;
    --auth-placeholder: #94a3b8;
    --auth-brand-on-mobile: #ffffff;
    --auth-brand-on-mobile-muted: rgba(255, 255, 255, 0.9);
    --auth-wave-1: rgba(255, 255, 255, 0.7);
    --auth-wave-2: rgba(255, 255, 255, 0.5);
    --auth-wave-3: rgba(255, 255, 255, 0.3);
    --auth-wave-4: #ffffff;
}

html.dark {
    --auth-deep: #8ea2ff;
    --auth-primary: #38bdf8;
    --auth-primary-soft: #152238;
    --auth-accent: #7dd3fc;
    --auth-text: #e8eaf2;
    --auth-muted: #9aa3b8;
    --auth-border: rgba(148, 163, 255, 0.22);
    --auth-surface: #0f1424;
    --auth-surface-muted: #151c2e;
    --auth-card: #182235;
    --auth-link-bg: #151c2e;
    --auth-gradient: linear-gradient(135deg, #121a33 0%, #1a2348 45%, #243056 100%);
    --auth-mobile-gradient: linear-gradient(180deg, #121a33 0%, #1a2348 36%, #0f1424 36%, #0f1424 100%);
    --auth-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    --auth-input-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 20px rgba(0, 0, 0, 0.25);
    --auth-alert-danger-bg: #3f1515;
    --auth-alert-danger-text: #fecaca;
    --auth-alert-danger-border: #7f1d1d;
    --auth-alert-success-bg: #14291c;
    --auth-alert-success-text: #86efac;
    --auth-alert-success-border: #166534;
    --auth-alert-info-text: #7dd3fc;
    --auth-alert-info-border: #0c4a6e;
    --auth-placeholder: #94a3b8;
    --auth-brand-on-mobile: #eef2ff;
    --auth-brand-on-mobile-muted: rgba(226, 232, 255, 0.82);
    --auth-wave-1: rgba(15, 20, 36, 0.45);
    --auth-wave-2: rgba(15, 20, 36, 0.65);
    --auth-wave-3: rgba(15, 20, 36, 0.82);
    --auth-wave-4: #0f1424;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'IRANSans', Tahoma, sans-serif;
    background: var(--auth-surface);
    color: var(--auth-text);
    transition: background-color 0.25s ease, color 0.25s ease;
}

.auth-page {
    min-height: 100dvh;
    position: relative;
    overflow-x: hidden;
    background: var(--auth-surface);
    transition: background 0.25s ease;
}

.auth-page__row {
    min-height: 100dvh;
}

/* ---- Form column ---- */
.auth-form-col {
    background: var(--auth-surface);
    display: flex;
    align-items: stretch;
    justify-content: center;
    z-index: 2;
    transition: background-color 0.25s ease;
}

.auth-form-panel {
    width: 100%;
    max-width: 420px;
    padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-brand {
    text-align: center;
    margin-bottom: 18px;
}

.auth-brand__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin-bottom: 10px;
}

.auth-brand__logo img {
    max-height: 36px;
    width: auto;
    object-fit: contain;
}

.auth-brand__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--auth-text) !important;
    line-height: 1.6;
}

.auth-brand__subtitle {
    margin: 6px 0 0;
    font-size: 0.9rem;
    color: var(--auth-muted) !important;
}

.auth-card {
    background: var(--auth-card);
    padding: 28px 24px 24px;
    border-radius: var(--auth-radius);
    transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* ---- Wave panel (desktop) ---- */
.auth-wave-col {
    display: none;
}

.auth-wave-panel.header {
    position: relative;
    text-align: center;
    background: var(--auth-gradient);
    color: #fff;
    height: 100%;
    min-height: 100dvh;
    border-top-right-radius: 110px;
    overflow: hidden;
    transition: background 0.3s ease;
}

.auth-wave-panel .inner-header {
    height: calc(100dvh - 120px);
    min-height: 320px;
    width: 100%;
    margin: 0;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wave-panel__tagline {
    display: block;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 12px;
}

.auth-wave-panel__gifs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-wave-panel__gifs img {
    width: 88px;
    height: auto;
    transition: filter 0.25s ease;
    /* subtle lift on bright blue band */
    filter: drop-shadow(0 2px 8px rgba(9, 67, 164, 0.2));
}

/*
  GIF line-art is black + cyan. On dark navy band, invert luminance
  and re-rotate hue so strokes go light while accents stay cyan-ish.
*/
html.dark .auth-wave-panel__gifs img {
    filter: invert(1) hue-rotate(180deg) brightness(1.12) contrast(1.08)
        drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

.waves {
    position: absolute;
    width: 100%;
    height: 15vh;
    min-height: 80px;
    max-height: 150px;
    bottom: 0;
    left: 0;
    margin-bottom: -1px;
}

.auth-waves .auth-wave {
    transition: fill 0.3s ease;
}

.auth-waves .auth-wave--1 { fill: var(--auth-wave-1); }
.auth-waves .auth-wave--2 { fill: var(--auth-wave-2); }
.auth-waves .auth-wave--3 { fill: var(--auth-wave-3); }
.auth-waves .auth-wave--4 { fill: var(--auth-wave-4); }

.parallax > use {
    animation: auth-move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }
.parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 20s; }

@keyframes auth-move-forever {
    0% { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d(85px, 0, 0); }
}

/* Mobile wave strip at bottom */
.auth-mobile-wave {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    background: var(--auth-gradient);
    z-index: 0;
    pointer-events: none;
    transition: background 0.3s ease;
}

.auth-mobile-wave .waves {
    position: absolute;
    height: 72px;
    min-height: 72px;
    max-height: 72px;
}

/* ---- Alerts ---- */
.auth-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.auth-alert--danger {
    background: var(--auth-alert-danger-bg);
    color: var(--auth-alert-danger-text);
    border: 1px solid var(--auth-alert-danger-border);
}
.auth-alert--success {
    background: var(--auth-alert-success-bg);
    color: var(--auth-alert-success-text);
    border: 1px solid var(--auth-alert-success-border);
}
.auth-alert--info {
    background: var(--auth-primary-soft);
    color: var(--auth-alert-info-text);
    border: 1px solid var(--auth-alert-info-border);
}

/* ---- Input shell ---- */
.auth-card,
.auth-form-panel {
    direction: rtl;
    text-align: right;
}

.auth-field {
    margin-bottom: 16px;
    direction: rtl;
    text-align: right;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--auth-text) !important;
    text-align: right;
    width: 100%;
}

.auth-hint {
    text-align: right;
}

.auth-input-shell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 6px 12px 6px 14px;
    border-radius: 16px;
    border: 2px solid var(--auth-border);
    background: linear-gradient(180deg, var(--auth-card) 0%, var(--auth-surface-muted) 100%);
    box-shadow: var(--auth-input-shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, background 0.25s ease;
    direction: rtl;
}

.auth-input-shell:focus-within {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(4, 169, 245, 0.16), 0 10px 24px rgba(4, 169, 245, 0.12);
    transform: translateY(-1px);
}

.auth-input-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(145deg, #04a9f5 0%, #0943a4 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.05rem;
    box-shadow: 0 6px 14px rgba(4, 169, 245, 0.28);
}

.auth-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--auth-text) !important;
    padding: 8px 4px;
    outline: none;
    box-shadow: none;
}

.auth-input::placeholder {
    color: var(--auth-placeholder) !important;
    font-weight: 500;
    opacity: 1;
}

.auth-field--ltr .auth-input {
    direction: ltr;
    text-align: left;
    letter-spacing: 0.04em;
}

.auth-field--ltr .auth-input-shell {
    direction: ltr;
    flex-direction: row;
}

.auth-input-toggle {
    border: 0;
    background: transparent;
    color: var(--auth-muted);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease, background 0.15s ease;
}

.auth-input-toggle:hover,
.auth-input-toggle:focus {
    color: var(--auth-primary);
    background: var(--auth-primary-soft);
    outline: none;
}

.auth-input-shell--password .auth-input {
    text-align: left;
    direction: ltr;
}

.auth-field .form-control,
.auth-field textarea.form-control {
    min-height: 56px;
    border-radius: 16px;
    border: 2px solid var(--auth-border);
    background: linear-gradient(180deg, var(--auth-card) 0%, var(--auth-surface-muted) 100%);
    font-size: 16px;
    padding: 12px 14px;
    color: var(--auth-text);
    box-shadow: var(--auth-input-shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.25s ease, color 0.25s ease;
    direction: rtl;
    text-align: right;
}

.auth-field textarea.form-control {
    min-height: 96px;
    resize: vertical;
}

.auth-field .form-control:focus,
.auth-field textarea.form-control:focus {
    border-color: var(--auth-primary);
    background: var(--auth-card);
    color: var(--auth-text);
    box-shadow: 0 0 0 4px rgba(4, 169, 245, 0.14);
}

.auth-input-shell--otp {
    justify-content: center;
    padding: 10px 16px;
}

.auth-input-shell--otp .auth-input-icon {
    background: linear-gradient(145deg, #38bdf8 0%, #04a9f5 100%);
}

.auth-otp-input {
    letter-spacing: 0.45em;
    text-align: center;
    font-size: 1.45rem !important;
    font-weight: 800;
}

.auth-hint {
    margin: -8px 0 14px;
    font-size: 0.8rem;
    color: var(--auth-muted);
    line-height: 1.6;
    padding-right: 4px;
}

.auth-section-title {
    margin: 4px 0 12px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--auth-primary);
    text-align: right;
}

.auth-section-divider {
    border: 0;
    border-top: 1px dashed var(--auth-border);
    margin: 18px 0;
}

.auth-submit {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    background: var(--auth-gradient);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(4, 169, 245, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-submit:hover,
.auth-submit:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(4, 169, 245, 0.42);
}

.auth-links {
    margin-top: 18px;
    display: grid;
    gap: 8px;
}

.auth-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--auth-border);
    background: var(--auth-link-bg);
    color: var(--auth-deep);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.auth-link:hover {
    background: var(--auth-primary-soft);
    border-color: var(--auth-border);
    color: var(--auth-deep);
    text-decoration: none;
}

.auth-link i { color: var(--auth-primary); }
.auth-link--primary { background: var(--auth-primary-soft); }

.auth-link-btn {
    width: 100%;
    border: 1px solid var(--auth-border);
    background: var(--auth-link-bg);
    color: var(--auth-deep);
    min-height: 44px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.auth-legal {
    margin-top: 16px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--auth-muted);
}

.auth-legal a { color: var(--auth-muted); text-decoration: none; }
.auth-legal a:hover { color: var(--auth-primary); }

/* ---- Mobile ---- */
@media (max-width: 991.98px) {
    .auth-page {
        background: var(--auth-mobile-gradient);
    }

    .auth-form-col {
        background: transparent;
    }

    .auth-form-panel {
        padding-top: 28px;
        padding-bottom: calc(88px + env(safe-area-inset-bottom));
    }

    .auth-brand {
        color: var(--auth-brand-on-mobile);
        margin-bottom: 22px;
    }

    .auth-brand__logo {
        width: 68px;
        height: 68px;
        margin: 0 auto 12px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.16);
        border: 1px solid rgba(255, 255, 255, 0.28);
        backdrop-filter: blur(8px);
    }

    html.dark .auth-brand__logo {
        background: rgba(148, 163, 255, 0.12);
        border-color: rgba(148, 163, 255, 0.22);
    }

    .auth-brand__logo img {
        max-height: 40px;
    }

    .auth-brand__title {
        color: var(--auth-brand-on-mobile);
        font-size: 1.12rem;
    }

    .auth-brand__subtitle {
        color: var(--auth-brand-on-mobile-muted);
    }

    .auth-card {
        border-radius: var(--auth-radius);
        box-shadow: var(--auth-shadow);
        padding: 28px 22px 24px;
        background: var(--auth-card);
    }
}

/* ---- Desktop ---- */
@media (min-width: 992px) {
    html:has(.auth-page),
    body:has(.auth-page) {
        height: 100%;
        overflow: hidden;
    }

    .auth-page {
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }

    .auth-page__row {
        height: 100dvh;
        max-height: 100dvh;
        flex-wrap: nowrap;
    }

    .auth-form-col {
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }

    .auth-form-panel {
        height: 100%;
        max-height: 100dvh;
        padding: 20px 28px 16px;
        justify-content: center;
        overflow: hidden;
    }

    .auth-card {
        padding: 32px 28px 28px;
    }

    .auth-wave-col {
        display: block;
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }

    .auth-wave-panel.header {
        min-height: 100%;
        height: 100%;
    }

    .auth-mobile-wave {
        display: none;
    }

    .auth-brand__title {
        font-size: 1.15rem;
    }

    /* Signup: wider column + compact fields to avoid page scroll */
    .auth-page--signup .auth-form-col {
        flex: 0 0 42%;
        max-width: 42%;
    }

    .auth-page--signup .auth-wave-col {
        flex: 0 0 58%;
        max-width: 58%;
    }

    .auth-page--signup .auth-form-panel {
        max-width: 560px;
        padding: 16px 24px 12px;
    }

    .auth-page--signup .auth-brand {
        margin-bottom: 10px;
    }

    .auth-page--signup .auth-brand__logo {
        min-height: 28px;
        margin-bottom: 6px;
    }

    .auth-page--signup .auth-brand__logo img {
        max-height: 28px;
    }

    .auth-page--signup .auth-brand__title {
        font-size: 1rem;
    }

    .auth-page--signup .auth-brand__subtitle {
        font-size: 0.82rem;
        margin-top: 2px;
    }

    .auth-page--signup .auth-field {
        margin-bottom: 10px;
    }

    .auth-page--signup .auth-field label {
        margin-bottom: 4px;
        font-size: 0.8rem;
    }

    .auth-page--signup .auth-input-shell {
        min-height: 44px;
        padding: 4px 10px;
        border-radius: 12px;
    }

    .auth-page--signup .auth-input-icon {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .auth-page--signup .auth-input {
        font-size: 0.95rem;
        padding: 6px 4px;
    }

    .auth-page--signup .auth-field .form-control,
    .auth-page--signup .auth-field textarea.form-control {
        min-height: 44px;
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 12px;
    }

    .auth-page--signup .auth-field textarea.form-control {
        min-height: 44px;
        max-height: 56px;
    }

    .auth-page--signup .auth-form-grid--names {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .auth-page--signup .auth-form-grid--names .auth-field {
        margin-bottom: 0;
    }

    .auth-page--signup .auth-section-title {
        margin: 2px 0 8px;
        font-size: 0.78rem;
    }

    .auth-page--signup .auth-section-divider {
        margin: 10px 0;
    }

    .auth-page--signup .auth-alert {
        padding: 8px 10px;
        margin-bottom: 10px;
        font-size: 0.78rem;
        line-height: 1.5;
    }

    .auth-page--signup .auth-submit {
        min-height: 44px;
        font-size: 0.92rem;
    }

    .auth-page--signup .auth-links {
        margin-top: 10px;
        gap: 6px;
    }

    .auth-page--signup .auth-link {
        min-height: 38px;
        padding: 8px 12px;
        font-size: 0.84rem;
    }

    .auth-page--signup .auth-legal {
        margin-top: 8px;
        font-size: 0.72rem;
    }
}

@media (min-width: 992px) and (max-height: 760px) {
  .auth-page--signup .auth-form-panel {
    justify-content: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}

@media (max-width: 768px) {
    .auth-wave-panel__tagline {
        font-size: 1.1rem;
    }

    .auth-wave-panel__gifs img {
        width: 72px;
    }
}


/* Legacy login inputs inside base_login forms */
.auth-card .form-control,
.auth-card .input-group .form-control {
    background: var(--auth-card);
    color: var(--auth-text);
    border-color: var(--auth-border);
}

.auth-card .form-control:focus {
    background: var(--auth-card);
    color: var(--auth-text);
    border-color: var(--auth-primary);
}

.auth-card .text-muted,
.auth-card a.text-muted,
.auth-card a.text-blue {
    color: var(--auth-muted) !important;
}

.auth-card a.text-blue:hover,
.auth-card a.text-muted:hover {
    color: var(--auth-primary) !important;
}

html.dark .auth-input-icon {
    background: linear-gradient(145deg, #38bdf8 0%, #1a2348 100%);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

html.dark .auth-submit {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

html.dark .auth-input-shell:focus-within {
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18), 0 10px 24px rgba(0, 0, 0, 0.35);
}

/*
  Beat global dashboard rules like `label { color: #1f3152 !important }`
  from style.css so auth dark/light text always wins.
*/
.auth-page label,
.auth-page .auth-field label,
.auth-card label {
    color: var(--auth-text) !important;
}

.auth-page .auth-hint,
.auth-page .auth-legal,
.auth-page .auth-legal a,
.auth-page .auth-brand__subtitle,
.auth-page p,
.auth-card .text-muted,
.auth-card a.text-muted {
    color: var(--auth-muted) !important;
}

.auth-page .auth-brand__title,
.auth-page .auth-input,
.auth-page .auth-field .form-control,
.auth-card .form-control,
.auth-card .input-group .form-control {
    color: var(--auth-text) !important;
}

.auth-page .auth-link,
.auth-page .auth-link-btn {
    color: var(--auth-deep) !important;
    background: var(--auth-link-bg) !important;
    border-color: var(--auth-border) !important;
}

.auth-page .auth-link:hover,
.auth-page .auth-link-btn:hover {
    color: var(--auth-primary) !important;
    background: var(--auth-primary-soft) !important;
}

.auth-page .auth-link i {
    color: var(--auth-primary) !important;
}

.auth-page .auth-section-title {
    color: var(--auth-primary) !important;
}

.auth-page .auth-input-toggle {
    color: var(--auth-muted) !important;
}

.auth-page .auth-input-toggle:hover,
.auth-page .auth-input-toggle:focus {
    color: var(--auth-primary) !important;
    background: var(--auth-primary-soft) !important;
}

.auth-page .auth-legal a:hover,
.auth-card a.text-blue:hover,
.auth-card a.text-muted:hover {
    color: var(--auth-primary) !important;
}

@media (max-width: 991.98px) {
    .auth-page .auth-brand__title,
    .auth-page .auth-brand label {
        color: var(--auth-brand-on-mobile) !important;
    }

    .auth-page .auth-brand__subtitle {
        color: var(--auth-brand-on-mobile-muted) !important;
    }

    .auth-page .auth-card label,
    .auth-page .auth-card .auth-field label {
        color: var(--auth-text) !important;
    }

    .auth-page .auth-card .auth-hint,
    .auth-page .auth-card .auth-legal,
    .auth-page .auth-card .auth-legal a {
        color: var(--auth-muted) !important;
    }
}

html.dark .auth-page .auth-input-shell,
html.dark .auth-page .auth-field .form-control,
html.dark .auth-card .form-control {
    background: linear-gradient(180deg, #1c2740 0%, #151c2e 100%) !important;
    border-color: rgba(148, 163, 255, 0.28) !important;
    color: var(--auth-text) !important;
}

html.dark .auth-page .auth-card {
    background: var(--auth-card) !important;
    border: 1px solid rgba(148, 163, 255, 0.12);
    padding: 28px 24px 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

@media (min-width: 992px) {
    html.dark .auth-page .auth-card {
        padding: 32px 28px 28px;
    }
}
