/* Customer OTP login — split screen, locked to viewport (no page scroll) */

.auth-html,
.auth-body {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
}

.auth-page {
    height: 100dvh;
    height: 100vh;
    max-height: 100dvh;
    max-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--cream, #fdf9f3);
    overflow: hidden;
}

.auth-page__visual {
    position: relative;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.auth-page__visual > img,
.auth-page__slide img,
.staff-login__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-page__brand .brand-inline,
.auth-page__brand-mark {
    justify-content: center;
    max-width: min(100%, 280px);
    margin-inline: auto;
}

.auth-page__brand .brand-inline__icon {
    width: auto;
    height: var(--bi-brand-icon-h, 56px);
    max-height: var(--bi-brand-icon-h, 56px);
    max-width: 72px;
    object-fit: contain;
}

.auth-page__brand .brand-inline__wordmark {
    width: auto;
    height: var(--bi-brand-word-h, 44px);
    max-height: var(--bi-brand-word-h, 44px);
    max-width: min(220px, 100%);
    object-fit: contain;
}

.auth-page__visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 42, 32, 0.15) 0%, rgba(13, 42, 32, 0.55) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 40px 32px;
    color: #fff;
}

.auth-page__brand {
    text-align: center;
}

.auth-page__brand-icon {
    display: block;
    font-size: 28px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.auth-page__brand-name {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: 0.12em;
    font-weight: 500;
}

.auth-page__brand-sub {
    display: block;
    font-size: 11px;
    letter-spacing: 0.35em;
    margin-top: 6px;
    opacity: 0.85;
}

.auth-page__welcome {
    text-align: center;
    padding: 0 12px 40px;
}

.auth-page__welcome h1 {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.35;
}

.auth-page__welcome p {
    font-size: 15px;
    opacity: 0.92;
    max-width: 360px;
    margin: 0 auto;
}

.auth-page__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px 12px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    border-radius: 12px;
}

.auth-page__feature {
    text-align: center;
    font-size: 11px;
    line-height: 1.5;
    opacity: 0.95;
}

.auth-page__feature svg {
    display: block;
    margin: 0 auto 8px;
    width: 22px;
    height: 22px;
}

.auth-page__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 32px clamp(24px, 4vw, 56px);
    background: #fff;
    border-radius: 32px 0 0 32px;
    margin-block: 0;
    margin-inline: -32px 0;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 2;
}

[dir="ltr"] .auth-page__panel {
    border-radius: 0 32px 32px 0;
    margin-block: 0;
    margin-inline: 0 -32px;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.06);
}

.auth-page__topbar {
    position: absolute;
    top: 24px;
    inset-inline-end: clamp(24px, 5vw, 48px);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted, #6b5344);
}

.auth-page__topbar a {
    color: var(--maroon, #5c1215);
    font-weight: 600;
    text-decoration: none;
}

.auth-page__form-wrap {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.auth-page__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    text-align: center;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.auth-page__subtitle {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted, #6b5344);
    text-align: center;
    margin: 0 auto 12px;
    max-width: 360px;
    flex-shrink: 0;
}

.auth-page__title-line {
    width: 48px;
    height: 3px;
    background: var(--green, #0d2a20);
    border-radius: 2px;
    margin: 0 auto 24px;
    flex-shrink: 0;
}

.auth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.auth-steps__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #9ca3af;
}

.auth-steps__item.is-active {
    color: var(--maroon, #5c1215);
    font-weight: 600;
}

.auth-steps__item.is-done {
    color: var(--green, #0d2a20);
}

.auth-steps__dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 600;
}

.auth-steps__item.is-active .auth-steps__dot,
.auth-steps__item.is-done .auth-steps__dot {
    background: var(--maroon, #5c1215);
    border-color: var(--maroon, #5c1215);
    color: #fff;
}

.auth-steps__item.is-done .auth-steps__dot {
    background: var(--green, #0d2a20);
    border-color: var(--green, #0d2a20);
}

.auth-steps__line {
    width: 32px;
    height: 2px;
    background: #e5e7eb;
}

.auth-steps__line.is-done {
    background: var(--green, #0d2a20);
}

.auth-alert {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
}

.auth-alert--error {
    background: #fef3f2;
    color: #b42318;
}

.auth-alert--success {
    background: #ecfdf3;
    color: #027a48;
}

.auth-alert--demo {
    background: #fff8e1;
    color: #9a6700;
    font-size: 13px;
}

.auth-field {
    margin-bottom: 16px;
    flex-shrink: 0;
}

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

.auth-field__input-wrap svg {
    position: absolute;
    inset-inline-end: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #9ca3af;
    pointer-events: none;
}

.auth-field input {
    width: 100%;
    padding: 16px 48px 16px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    font: inherit;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

[dir="ltr"] .auth-field input {
    padding: 16px 16px 16px 48px;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--maroon, #5c1215);
    box-shadow: 0 0 0 3px rgba(92, 18, 21, 0.1);
}

.auth-field input::placeholder {
    color: #9ca3af;
}

.auth-field--otp input {
    text-align: center;
    letter-spacing: 0.35em;
    font-size: 1.25rem;
    font-weight: 600;
    padding-inline: 16px;
}

.auth-phone-display {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted, #6b5344);
    margin-bottom: 16px;
}

.auth-phone-display strong {
    color: var(--text, #2c1810);
    direction: ltr;
    display: inline-block;
}

.auth-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 14px 24px;
    border: none;
    border-radius: 14px;
    background: var(--maroon, #5c1215);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    margin-top: 8px;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.auth-submit:hover {
    background: var(--maroon-dark, #4a0e10);
}

.auth-submit:active {
    transform: scale(0.99);
}

.auth-submit svg {
    width: 18px;
    height: 18px;
}

.auth-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    text-align: center;
    margin-top: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-muted, #6b5344);
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    width: 100%;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.auth-back-link:hover {
    color: var(--maroon, #5c1215);
}

.auth-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 12px;
    color: #9ca3af;
    flex-shrink: 0;
    line-height: 1.5;
    text-align: center;
}

.auth-security svg {
    width: 16px;
    height: 16px;
    color: var(--green, #0d2a20);
    flex-shrink: 0;
}

.auth-body {
    margin: 0;
    background: var(--cream, #fdf9f3);
}

/* دسکتاپ — فشرده‌سازی فقط برای split-screen */
@media (min-width: 1101px) and (max-height: 820px) {
    .auth-page__visual-overlay {
        padding: 24px 28px 20px;
    }

    .auth-page__welcome {
        padding-bottom: 16px;
    }

    .auth-page__welcome h1 {
        font-size: 1.45rem;
        margin-bottom: 8px;
    }

    .auth-page__welcome p {
        font-size: 13px;
    }

    .auth-page__features {
        padding: 10px 8px;
        gap: 8px;
    }

    .auth-page__feature {
        font-size: 10px;
    }

    .auth-page__topbar {
        top: 12px;
    }

    .auth-page__panel {
        padding: 20px clamp(24px, 4vw, 48px);
    }

    .auth-page__title {
        font-size: 1.25rem;
    }

    .auth-page__title-line {
        margin-bottom: 16px;
    }

    .auth-steps {
        margin-bottom: 16px;
    }

    .auth-steps__item span:not(.auth-steps__dot) {
        font-size: 12px;
    }

    .auth-field {
        margin-bottom: 12px;
    }

    .auth-security {
        margin-top: 16px;
    }
}

/* Desktop-only: hide app mobile chrome */
.auth-app-header,
.auth-app-hero {
    display: none;
}

/* لپتاپ / تبلت — UI اپ بدون split */
@media (max-width: 1100px) {
    .auth-html,
    .auth-body {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .auth-page {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        min-height: 100dvh;
        min-height: 100svh;
        max-height: none;
        background: var(--cream, #fdf9f3);
    }

    .auth-page__visual {
        display: none !important;
    }

    .auth-page__panel {
        flex: 1;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        max-height: none;
        min-height: 100dvh;
        min-height: 100svh;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        justify-content: flex-start;
        background: #fff;
        overflow: visible;
        padding:
            max(12px, env(safe-area-inset-top))
            max(20px, env(safe-area-inset-right))
            max(20px, env(safe-area-inset-bottom))
            max(20px, env(safe-area-inset-left));
    }

    [dir="ltr"] .auth-page__panel {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-page__topbar--desktop {
        display: none;
    }

    .auth-app-header {
        display: grid;
        grid-template-columns: 40px 1fr 40px;
        align-items: center;
        flex-shrink: 0;
        margin-bottom: 16px;
    }

    .auth-app-header__back {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        border-radius: 12px;
        background: #f3f4f6;
        color: var(--text, #2c1810);
        text-decoration: none;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .auth-app-header__back svg {
        width: 20px;
        height: 20px;
    }

    [dir="rtl"] .auth-app-header__back svg {
        transform: scaleX(-1);
    }

    .auth-app-header__brand {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .brand-mark,
    .auth-app-header__icon {
        display: inline-flex;
        flex-shrink: 0;
    }

    .brand-mark img,
    .auth-app-header__icon {
        width: auto;
        height: 40px;
        max-height: 40px;
        object-fit: contain;
    }

    .auth-app-header__wordmark {
        height: 32px;
        max-height: 32px;
        width: auto;
        object-fit: contain;
    }

    .auth-app-header__name {
        font-family: var(--font-sans);
        font-size: 22px;
        letter-spacing: 0.04em;
        font-weight: 500;
        color: var(--maroon, #5c1215);
    }

    .auth-app-hero {
        display: block;
        text-align: center;
        flex-shrink: 0;
        margin-bottom: 20px;
        padding: 0 8px;
    }

    .auth-app-hero__title {
        font-family: var(--font-serif, 'Playfair Display', serif);
        font-size: 1.35rem;
        font-weight: 600;
        color: var(--green, #0d2a20);
        line-height: 1.35;
        margin-bottom: 8px;
    }

    .auth-app-hero__text {
        display: block;
        font-size: 14px;
        line-height: 1.6;
        color: var(--text-muted, #6b5344);
        max-width: 320px;
        margin: 0 auto;
    }

    .auth-page__title,
    .auth-page__title-line {
        display: none;
    }

    .auth-page__subtitle {
        display: block;
        text-align: center;
        font-size: 14px;
        line-height: 1.6;
        margin: 0 auto 16px;
        max-width: 340px;
        color: var(--text-muted, #6b5344);
    }

    .auth-page__form-wrap {
        max-width: 440px;
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0 auto;
        overflow: visible;
    }

    .auth-steps {
        justify-content: center;
        margin-bottom: 20px;
        padding: 10px 16px;
        background: #f8f9fa;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .auth-steps__item {
        font-size: 13px;
    }

    .auth-security {
        margin-top: auto;
        padding-top: 20px;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        font-size: 12px;
    }

    .auth-submit {
        position: sticky;
        bottom: max(8px, env(safe-area-inset-bottom, 0px));
        z-index: 2;
    }

    .auth-field input {
        min-height: 48px;
    }
}

/* تبلت — کارت وسط‌چین */
@media (max-width: 1100px) and (min-width: 600px) {
    .auth-page {
        align-items: center;
        justify-content: center;
        padding: 24px 20px;
    }

    .auth-page__panel {
        flex: 0 1 auto;
        width: 100%;
        max-width: 480px;
        min-height: auto;
        border-radius: 24px;
        box-shadow: 0 12px 48px rgba(75, 28, 31, 0.08);
        padding:
            max(20px, env(safe-area-inset-top))
            max(28px, env(safe-area-inset-right))
            max(28px, env(safe-area-inset-bottom))
            max(28px, env(safe-area-inset-left));
    }

    .auth-app-hero__title {
        font-size: 1.5rem;
    }

    .auth-app-hero__text {
        font-size: 15px;
    }

    .auth-page__form-wrap {
        max-width: none;
    }
}

.checkout-auth-embed {
    max-width: 420px;
}

.checkout-auth-embed .auth-page__form-wrap {
    max-width: none;
    margin: 0;
    flex: none;
    overflow: visible;
}

.checkout-auth-embed .auth-page__title {
    display: block !important;
    text-align: start;
    font-size: 1.35rem;
}

.checkout-auth-embed .auth-page__subtitle {
    text-align: start;
    margin-inline: 0;
    max-width: none;
}

.checkout-auth-embed .auth-page__title-line {
    display: block !important;
    margin-inline: 0;
    margin-bottom: 24px;
}

/* موبایل — فشرده‌تر */
@media (max-width: 599px) {
    .auth-page {
        background: #fff;
    }

    .auth-app-header {
        grid-template-columns: 44px 1fr 44px;
        margin-bottom: 12px;
    }

    .auth-app-header__back {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .auth-app-header__icon {
        font-size: 18px;
    }

    .auth-app-header__name {
        font-size: 13px;
    }

    .auth-app-hero {
        margin-bottom: 16px;
        margin-top: 150px;
    }

    .auth-app-hero__title {
        font-size: 1.2rem;
        margin-bottom: 0;
    }

    .auth-app-hero__text {
        display: none;
    }

    .auth-page__panel {
        min-height: 100dvh;
        min-height: 100svh;
        padding:
            max(10px, env(safe-area-inset-top))
            max(16px, env(safe-area-inset-right))
            max(16px, env(safe-area-inset-bottom))
            max(16px, env(safe-area-inset-left));
    }

    .auth-page__subtitle {
        font-size: 13px;
        max-width: 300px;
    }

    .auth-steps {
        margin-bottom: 16px;
        padding: 8px 12px;
    }

    .auth-steps__item span:not(.auth-steps__dot) {
        display: none;
    }

    .auth-steps__dot {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .auth-steps__line {
        width: 24px;
    }

    .auth-alert {
        padding: 8px 12px;
        font-size: 13px;
        margin-bottom: 10px;
    }

    .auth-field {
        margin-bottom: 10px;
    }

    .auth-field input {
        padding: 14px 48px 14px 16px;
        font-size: 16px;
        min-height: 52px;
        border-radius: 14px;
        background: #f3f4f6;
        border: 1.5px solid transparent;
    }

    [dir="ltr"] .auth-field input {
        padding: 14px 14px 14px 44px;
    }

    .auth-field input:focus {
        background: #fff;
        border-color: var(--maroon, #5c1215);
    }

    .auth-field--otp input {
        font-size: 1.1rem;
        letter-spacing: 0.25em;
    }

    .auth-phone-display {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .auth-submit {
        min-height: 52px;
        padding: 14px 20px;
        border-radius: 14px;
        font-size: 16px;
        box-shadow: 0 4px 16px rgba(92, 18, 21, 0.2);
    }

    .auth-back-link {
        min-height: 48px;
        margin-top: 4px;
        font-size: 14px;
    }

    .auth-security {
        padding-top: 12px;
        font-size: 11px;
    }

    .auth-security svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 599px) and (max-height: 640px) {
    .auth-app-header {
        margin-bottom: 8px;
    }

    .auth-app-hero {
        margin-bottom: 10px;
    }

    .auth-app-hero__title {
        font-size: 1.05rem;
    }

    .auth-steps {
        margin-bottom: 10px;
        padding: 6px 10px;
    }

    .auth-security {
        padding-top: 8px;
    }
}

/* Staff login slider (salon / cashier) */
.auth-page__slider,
.staff-login__slider {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.staff-login__slider {
    z-index: 0;
    isolation: isolate;
}

.staff-login-page .staff-login__overlay {
    z-index: 1;
    justify-content: flex-start;
    padding: 36px 32px 28px;
    background: linear-gradient(
        180deg,
        rgba(13, 42, 32, 0.28) 0%,
        rgba(13, 42, 32, 0.08) 38%,
        rgba(13, 42, 32, 0.55) 72%,
        rgba(13, 42, 32, 0.82) 100%
    );
    pointer-events: none;
}

.staff-login-page .staff-login__overlay .auth-page__brand,
.staff-login__overlay-foot,
.staff-login__dots--inline .auth-page__slider-dot {
    pointer-events: auto;
}

.staff-login-page .auth-page__brand {
    flex-shrink: 0;
}

.staff-login-page .auth-page__brand .brand-inline__icon,
.staff-login-page .auth-page__brand .brand-inline__wordmark {
    display: inline !important;
}

.staff-login__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    contain: layout style paint;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.staff-login__slide.is-active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.staff-login__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate3d(0, 0, 0) scale(1);
    backface-visibility: hidden;
}

.staff-login__slide.is-active img {
    animation: staff-login-kenburns 18s linear forwards;
}

@keyframes staff-login-kenburns {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(0, 0, 0) scale(1.06); }
}

.staff-login__overlay-foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.staff-login__welcome {
    padding: 0 6px 2px;
    text-align: center;
}

.staff-login__welcome h1 {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 4px;
    letter-spacing: 0.02em;
}

.staff-login__welcome p {
    font-size: 11px;
    line-height: 1.45;
    opacity: 0.86;
    max-width: 300px;
    margin: 0 auto;
}

.staff-login__welcome .staff-login__badge {
    margin-bottom: 8px;
    font-size: 10px;
    padding: 4px 10px;
}

.staff-login__features {
    padding: 12px 10px;
    gap: 10px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    border-radius: 12px;
}

.staff-login__features .auth-page__feature {
    color: #fff;
}

.staff-login__features .auth-page__feature svg {
    display: block;
    margin: 0 auto 8px;
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

.staff-login__dots--inline {
    position: static;
    inset: auto;
    display: flex;
    justify-content: center;
    gap: 7px;
    padding: 2px 0 4px;
    z-index: auto;
}

.staff-login__dots--inline .auth-page__slider-dot {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.38);
    transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), background 0.35s ease, width 0.35s ease;
}

.staff-login__dots--inline .auth-page__slider-dot.is-active {
    width: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .staff-login__slide {
        transition: none !important;
    }

    .staff-login__slide.is-active img {
        animation: none !important;
    }
}

/* Staff login — dark mode (synced with bianca_salon_dark) */
html.staff-login-page--dark {
    color-scheme: dark;
}

html.staff-login-page--dark .auth-page {
    background: #0f1014;
}

html.staff-login-page--dark .auth-page__panel {
    background: #17181e;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.35);
}

html.staff-login-page--dark .auth-page__title,
html.staff-login-page--dark .auth-app-hero__title {
    color: #f3f0eb;
}

html.staff-login-page--dark .auth-page__subtitle,
html.staff-login-page--dark .auth-app-hero__text,
html.staff-login-page--dark .auth-security,
html.staff-login-page--dark .auth-field__label {
    color: #a8a4b8;
}

html.staff-login-page--dark .auth-field input {
    background: #22232b;
    border-color: #34353f;
    color: #f3f0eb;
}

html.staff-login-page--dark .auth-field input:focus {
    border-color: #c4956a;
    box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.18);
}

html.staff-login-page--dark .auth-field__input-wrap svg {
    color: #7c788a;
}

html.staff-login-page--dark .auth-alert--error {
    background: rgba(180, 35, 24, 0.16);
    color: #f2a8a1;
}

html.staff-login-page--dark .auth-app-header__wordmark {
    filter: brightness(0) invert(1);
}

.staff-login__theme-btn {
    position: absolute;
    top: 20px;
    inset-inline-end: clamp(20px, 3vw, 40px);
    z-index: 5;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(92, 18, 21, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--maroon, #5c1215);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.staff-login__theme-btn:hover {
    background: #fff;
    border-color: rgba(92, 18, 21, 0.22);
}

.staff-login__theme-btn.is-active {
    background: #22232b;
    border-color: #3a3b46;
    color: #f3d9a8;
}

.staff-login__theme-icon {
    width: 18px;
    height: 18px;
}

.staff-login__theme-icon--moon {
    display: none;
}

.staff-login__theme-btn.is-active .staff-login__theme-icon--sun {
    display: none;
}

.staff-login__theme-btn.is-active .staff-login__theme-icon--moon {
    display: block;
}

html.staff-login-page--dark .staff-login__theme-btn {
    background: #22232b;
    border-color: #3a3b46;
    color: #f3d9a8;
}

html.staff-login-page--dark .staff-login__theme-btn.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: #f3f0eb;
}

@media (max-width: 1100px) {
    .staff-login__theme-btn {
        top: 14px;
        inset-inline-end: 14px;
        width: 36px;
        height: 36px;
    }
}

.auth-page__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.1s ease-in-out;
    pointer-events: none;
}

.auth-page__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.auth-page__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-page__slider-dots,
.staff-login__dots:not(.staff-login__dots--inline) {
    position: absolute;
    bottom: 28px;
    inset-inline: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3;
}

.auth-page__slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.auth-page__slider-dot.is-active {
    background: #fff;
    transform: scale(1.15);
}

.staff-login__badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.staff-login__badge--mobile {
    display: none;
    color: var(--maroon, #5c1215);
    background: rgba(92, 18, 21, 0.08);
    border-color: rgba(92, 18, 21, 0.15);
}

.auth-field__label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted, #6b5344);
}

.staff-login__switch {
    text-decoration: none;
}

@media (max-width: 1100px) {
    .staff-login__visual {
        display: none;
    }

    .staff-login__badge--mobile {
        display: inline-block;
    }
}
