/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/Other/CascadeStyleSheet.css to edit this template
*/
/* 
    Created on : Oct 1, 2026, 4:42:29 PM
    Author     : ahda.muthahhari
*/

:root {
    /* Merah brand */
    --auth-red: #CE1C17;
    --auth-red-dark: #A8120E;
    --auth-red-light: #FF7B75;          /* teks & ikon merah di atas latar gelap */

    /* Abu gelap (panel kiri & mockup) */
    --auth-charcoal: #151719;
    --auth-graphite: #24272b;
    --auth-steel: #3a3e44;
    --auth-chat: #17191c;
    --auth-bubble-in: #2c3035;
    --auth-bubble-out: #8e1714;
    --auth-paper: #f1f2f4;
    --auth-paper-muted: rgba(241, 242, 244, .66);

    /* Abu muda (panel form) */
    --auth-surface: #ffffff;
    --auth-field: #f3f4f6;
    --auth-line: #dfe2e6;
    --auth-ink: #1f2328;
    --auth-muted: #6a7078;
    --auth-focus: #3a3e44;
    --auth-danger: #b3130f;
}

/* --- Reset terhadap .login-page bawaan AdminLTE -------------------------- */
body.login-page.auth-page {
    display: block;
    height: auto;
    min-height: 100vh;
    background: var(--auth-surface);
    color: var(--auth-ink);
    font-family: var(--auth-font);
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
}

/* --- Panel kiri (brand WABlast) ------------------------------------------- */
.auth-aside {
    position: relative;
    flex: 0 0 clamp(420px, 44%, 680px);
    overflow: hidden;
    color: var(--auth-paper);
    background:
        radial-gradient(70% 55% at 85% 92%, rgba(206, 28, 23, .20), transparent 70%),
        radial-gradient(60% 40% at 0% 0%, rgba(255, 255, 255, .06), transparent 70%),
        linear-gradient(165deg, #2b2e33 0%, var(--auth-graphite) 35%, var(--auth-charcoal) 100%);
}

.auth-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 70%, transparent 100%);
    pointer-events: none;
}

.auth-aside-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-height: 100vh;
    padding: 48px clamp(40px, 4.5vw, 72px) 0;
}

.auth-brand a {
    color: #fff;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -.01em;
    text-decoration: none;
}

.auth-brand b {
    font-weight: 800;
}
.auth-brand img {
    max-height: 36px;
    width: auto;
}

/* Garis aksen merah tipis di atas headline */
.auth-pitch::before {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    margin-bottom: 20px;
    border-radius: 2px;
    background: var(--auth-red);
}

.auth-headline {
    max-width: 13em;
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 2.6vw, 2.5rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.025em;
    color: #fff;
}

.auth-subline {
    max-width: 30em;
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--auth-paper-muted);
}

.wb-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.wb-modes li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    font-size: .875rem;
    font-weight: 500;
    color: var(--auth-paper);
}

.wb-modes svg {
    color: var(--auth-red-light);
}

/* --- Ilustrasi: ponsel + kartu melayang ------------------------------------
   Semua ukuran di dalam .wb-visual memakai em, dan font-size-nya mengikuti
   lebar/tinggi panel (container query units), jadi ilustrasi mengecil rapi. */
.wb-visual-wrap {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    height: clamp(300px, 46vh, 440px);
    margin-top: auto;
    container-type: size;
}

.wb-visual {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 30em;
    height: 26em;
    margin-left: -15em;
    font-size: 16px;
    font-size: min(16px, calc(100cqw / 30), calc(100cqh / 26));
}

.wb-visual::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 6%;
    width: 26em;
    height: 26em;
    margin-left: -13em;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(206, 28, 23, .30), transparent 62%);
}

.wb-ring {
    position: absolute;
    left: 50%;
    top: 64%;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.wb-ring-1 {
    width: 20em;
    height: 20em;
}
.wb-ring-2 {
    width: 28em;
    height: 28em;
}

/* Ponsel (terpotong di tepi bawah panel) */
.wb-phone {
    position: absolute;
    left: 50%;
    bottom: -4.5em;
    width: 15em;
    height: 27.5em;
    margin-left: -7.5em;
    padding: .55em;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 2.4em;
    background: linear-gradient(160deg, var(--auth-steel), #121315);
    box-shadow: 0 2em 4em rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.wb-screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 1.9em;
    background: var(--auth-chat);
}

.wb-notch {
    position: absolute;
    z-index: 2;
    top: .6em;
    left: 50%;
    width: 4.4em;
    height: 1.2em;
    margin-left: -2.2em;
    border-radius: 1em;
    background: #000;
}

.wb-head {
    display: flex;
    align-items: center;
    gap: .6em;
    padding: 2.2em .9em .7em;
    background: #2a2d32;
}

.wb-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 2.1em;
    width: 2.1em;
    height: 2.1em;
    border-radius: 50%;
    background: linear-gradient(135deg, #E5322D, var(--auth-red));
    color: #fff;
}

.wb-head strong {
    display: block;
    font-size: .85em;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

.wb-head small {
    display: block;
    font-size: .65em;
    color: var(--auth-paper-muted);
}

.wb-chat {
    display: flex;
    flex-direction: column;
    gap: .55em;
    height: 100%;
    padding: .9em .8em;
    font-size: .78em;
    background:
        radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 14px 14px,
        var(--auth-chat);
}

.wb-bubble {
    position: relative;
    max-width: 86%;
    padding: .55em .7em .4em;
    border-radius: .7em;
    line-height: 1.45;
    color: var(--auth-paper);
}

.wb-in {
    align-self: flex-start;
    border-top-left-radius: .2em;
    background: var(--auth-bubble-in);
}

.wb-out {
    align-self: flex-end;
    border-top-right-radius: .2em;
    background: var(--auth-bubble-out);
}

.wb-b-title {
    display: block;
    margin-bottom: .15em;
    font-weight: 600;
    color: #fff;
}

.wb-time {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .3em;
    margin-top: .2em;
    font-size: .78em;
    color: rgba(241, 242, 244, .5);
}

.wb-out .wb-time svg {
    color: #e3e5e8;
}

.wb-cta {
    display: block;
    margin: .5em -.7em -.4em;
    padding: .55em;
    border-top: 1px solid rgba(255, 255, 255, .1);
    text-align: center;
    font-weight: 600;
    color: var(--auth-red-light);
}

/* Kartu melayang */
.wb-float {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: .8em;
    padding: .8em 1em;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 1.1em;
    background: rgba(23, 25, 28, .78);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1.4em 2.8em rgba(0, 0, 0, .38);
    font-size: .8em;
    line-height: 1.3;
    color: #fff;
    animation: wb-float-in .6s var(--d, 0s) cubic-bezier(.2, .8, .2, 1) both;
}

.wb-float-a {
    --d: 2.3s;
    left: 0;
    top: 18%;
    flex-direction: column;
    align-items: flex-start;
    gap: .6em;
    width: 11.5em;
}

.wb-float-b {
    --d: 2.7s;
    right: 0;
    top: 46%;
}

.wb-float-head {
    display: flex;
    align-items: center;
    gap: .5em;
    font-size: .85em;
    color: var(--auth-paper-muted);
}

.wb-float-head svg {
    color: var(--auth-red-light);
}

.wb-float-row {
    display: flex;
    align-items: center;
    gap: .8em;
}

.wb-donut-wrap {
    position: relative;
    flex: 0 0 3.6em;
    width: 3.6em;
    height: 3.6em;
}

.wb-donut {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(var(--auth-red) 0 86%, rgba(255, 255, 255, .14) 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - .4em), #000 calc(100% - .4em + 1px));
    mask: radial-gradient(farthest-side, transparent calc(100% - .4em), #000 calc(100% - .4em + 1px));
}

.wb-donut-label {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: .85em;
    font-weight: 600;
}

.wb-float-ico {
    display: grid;
    place-items: center;
    flex: 0 0 2.2em;
    width: 2.2em;
    height: 2.2em;
    border-radius: 50%;
    background: var(--auth-red);
    color: #fff;
}

.wb-float-text strong {
    display: block;
    font-weight: 600;
}

.wb-float-text small {
    display: block;
    font-size: .85em;
    color: var(--auth-paper-muted);
}

/* Satu rangkaian animasi saat halaman dibuka: pesan masuk, lalu kartu muncul */
.wb-msg {
    animation: wb-pop .5s var(--d, 0s) cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes wb-pop {
    from {
        opacity: 0;
        transform: translateY(.6em) scale(.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes wb-float-in {
    from {
        opacity: 0;
        transform: translateY(.8em);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-height: 820px) {
    .auth-subline {
        display: none;
    }
}

/* --- Panel kanan (form) --------------------------------------------------- */
.auth-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    background: var(--auth-surface);
}

.auth-panel {
    width: 100%;
    max-width: 400px;
    margin: auto;
}

.auth-brand-mobile {
    display: none;
    margin-bottom: 32px;
}

.auth-brand-mobile a {
    color: var(--auth-ink);
    font-size: 1.375rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-brand-mobile img {
    max-height: 36px;
    width: auto;
}

.auth-title {
    margin: 0 0 .375rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--auth-ink);
}

.auth-lead {
    margin: 0 0 1.75rem;
    line-height: 1.6;
    color: var(--auth-muted);
}

.auth-lead b {
    color: var(--auth-ink);
    font-weight: 600;
}

.auth-foot {
    text-align: center;
    font-size: .8125rem;
    color: var(--auth-muted);
}

.auth-panel .alert {
    margin-bottom: 1.5rem;
    border-radius: 10px;
    font-size: .875rem;
}

/* --- Field ---------------------------------------------------------------- */
.auth-field {
    margin-bottom: 1.25rem;
}

.auth-field label {
    display: block;
    margin-bottom: .375rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--auth-ink);
}

.auth-field .input-group {
    flex-wrap: nowrap;
    overflow: hidden;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    background: var(--auth-surface);
    transition: border-color .15s ease, box-shadow .15s ease;
}

/* Fokus memakai abu gelap supaya merah tetap khusus untuk aksi dan error */
.auth-field .input-group:focus-within {
    border-color: var(--auth-focus);
    box-shadow: 0 0 0 3px rgba(58, 62, 68, .14);
}

.auth-field .input-group.has-error {
    border-color: var(--auth-danger);
}

.auth-field .input-group.has-error:focus-within {
    box-shadow: 0 0 0 3px rgba(179, 19, 15, .16);
}

.auth-field .input-group-text {
    justify-content: center;
    width: 44px;
    border: 0;
    border-radius: 0;
    background: var(--auth-field);
    color: var(--auth-muted);
}

.auth-field .form-control {
    height: 46px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: .9375rem;
    color: var(--auth-ink);
}

.auth-field .invalid-feedback {
    display: block;
    margin-top: .375rem;
    font-size: .8125rem;
    color: var(--auth-danger);
}

.auth-hint {
    display: block;
    margin-top: .375rem;
    font-size: .8125rem;
    color: var(--auth-muted);
}

.auth-eye {
    width: 44px;
    border: 0;
    background: transparent;
    color: var(--auth-muted);
    cursor: pointer;
}

.auth-eye:hover {
    color: var(--auth-ink);
}

/* Input kode 2FA */
.auth-field .form-control.auth-code {
    height: 56px;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: .35em;
    text-align: center;
    text-indent: .35em;
}

.auth-field .form-control.auth-code::placeholder {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: normal;
    text-indent: 0;
}

.auth-field .form-control.auth-code:focus {
    border-color: var(--auth-focus);
    box-shadow: 0 0 0 3px rgba(58, 62, 68, .14);
}

/* --- Remember me & tautan ------------------------------------------------- */
.auth-aux {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: .875rem;
}

.auth-panel .icheck-primary label {
    font-size: .875rem;
    font-weight: 500;
    color: var(--auth-ink);
}

.auth-panel .icheck-primary > input:first-child:checked + label::before {
    background-color: var(--auth-red);
    border-color: var(--auth-red);
}

.auth-panel a {
    color: var(--auth-red);
    font-weight: 500;
}
.auth-panel a:hover {
    color: var(--auth-red-dark);
}

.auth-secondary {
    margin: 1.5rem 0 0;
    text-align: center;
    font-size: .875rem;
    color: var(--auth-muted);
}

.auth-resend {
    margin: 1.25rem 0 0;
    font-size: .875rem;
    color: var(--auth-muted);
}

/* --- Tombol --------------------------------------------------------------- */
.auth-panel .btn-auth {
    height: 48px;
    border-color: var(--auth-red);
    border-radius: 10px;
    background: var(--auth-red);
    font-weight: 600;
    color: #fff;
    transition: background-color .15s ease, border-color .15s ease;
}

.auth-panel .btn-auth:hover,
.auth-panel .btn-auth:active {
    border-color: var(--auth-red-dark);
    background: var(--auth-red-dark);
    color: #fff;
}

.auth-panel .btn-auth:disabled {
    opacity: .75;
    cursor: progress;
}

/* --- Fokus keyboard ------------------------------------------------------- */
.auth-panel a:focus-visible,
.auth-panel .btn-auth:focus-visible,
.auth-panel .auth-eye:focus-visible {
    outline: 2px solid var(--auth-focus);
    outline-offset: 2px;
}

/* --- Responsif ------------------------------------------------------------ */
@media (max-width: 991.98px) {
    .auth-aside {
        display: none;
    }
    .auth-brand-mobile {
        display: block;
    }
}

@media (max-width: 575.98px) {
    .auth-main {
        padding: 24px 20px;
    }
    .auth-title {
        font-size: 1.5rem;
    }
}

/* --- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .wb-msg,
    .wb-float {
        animation: none;
    }
    .auth-field .input-group,
    .auth-panel .btn-auth {
        transition: none;
    }
}

/* --- Alert close button (login & verification) ---------------------------
   Keeps the × perfectly centred regardless of the page font, and wins over
   AdminLTE / additional.css whatever the load order is. */
.auth-panel .alert.alert-dismissible {
    padding-right: 52px;
}
.auth-panel .alert .close {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    width: 28px !important;
    height: 28px !important;
    margin: -14px 0 0 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0;
    border-radius: 8px;
    font-size: 0 !important;
    line-height: 1 !important;
    color: inherit;
    text-shadow: none;
    background: transparent;
    opacity: .55;
}
.auth-panel .alert .close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, .06);
}
.auth-panel .alert .close > span {
    display: none !important;
}
.auth-panel .alert .close::before {
    content: '\f00d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: .8rem;
    line-height: 1;
}
/* ==========================================================================
   Responsive & device compatibility (all screen sizes)
   Breakpoints follow Bootstrap 4: 1600+ wide desktop, 1200 laptop,
   992 tablet landscape / small laptop, 768 tablet portrait, 576 phone,
   360 small phone. Plus short-height and landscape-phone handling.
   ========================================================================== */

/* Use the real visible viewport on mobile browsers (address bar aware) */
body.login-page.auth-page,
.auth-shell,
.auth-aside-inner {
    min-height: 100vh;
    min-height: 100svh;
}
@supports (min-height: 100dvh) {
    body.login-page.auth-page,
    .auth-shell {
        min-height: 100dvh;
    }
}
body.login-page.auth-page {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
.auth-panel,
.auth-panel * {
    box-sizing: border-box;
}
.auth-panel img {
    max-width: 100%;
}
.auth-panel .btn-auth {
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.auth-eye {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Remember me + link: wrap gracefully on narrow widths */
.auth-aux {
    flex-wrap: wrap;
    gap: 10px 16px;
}
.auth-aux > * {
    margin-bottom: 0;
}

/* --- Wide desktop (1600px+) ----------------------------------------------- */
@media (min-width: 1600px) {
    .auth-panel {
        max-width: 440px;
    }
    .auth-title {
        font-size: 2rem;
    }
    .auth-headline {
        max-width: 14em;
    }
}

/* --- Laptop (992px - 1199px): narrower brand panel ------------------------ */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .auth-aside {
        flex-basis: 42%;
    }
    .auth-aside-inner {
        gap: 24px;
        padding: 40px 36px 0;
    }
    .auth-headline {
        font-size: 1.75rem;
    }
    .wb-modes li {
        padding: 6px 12px;
        font-size: .8125rem;
    }
    .wb-float-a {
        display: none;
    }
}

/* --- Short laptop screens (e.g. 1366x768, 1280x720) ----------------------- */
@media (min-width: 992px) and (max-height: 760px) {
    .auth-aside-inner {
        gap: 20px;
        padding-top: 32px;
    }
    .auth-pitch::before {
        margin-bottom: 14px;
    }
    .auth-headline {
        font-size: clamp(1.5rem, 2.2vw, 2rem);
    }
    .wb-modes {
        margin-top: 16px;
    }
    .wb-visual-wrap {
        height: clamp(220px, 40vh, 320px);
    }
    .auth-main {
        padding-top: 24px;
        padding-bottom: 24px;
    }
    .auth-lead {
        margin-bottom: 1.25rem;
    }
    .auth-field {
        margin-bottom: 1rem;
    }
}
@media (min-width: 992px) and (max-height: 620px) {
    .wb-visual-wrap {
        display: none;
    }
}

/* --- Tablet & mobile (below 992px): form becomes a centred card ------------ */
@media (max-width: 991.98px) {
    body.login-page.auth-page {
        background:
            radial-gradient(90% 50% at 100% 0%, rgba(206, 28, 23, .10), transparent 70%),
            radial-gradient(70% 40% at 0% 100%, rgba(36, 39, 43, .06), transparent 70%),
            #f4f5f7;
    }
    .auth-shell {
        display: block;
    }
    .auth-main {
        min-height: 100vh;
        min-height: 100svh;
        justify-content: center;
        padding: max(32px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
        background: transparent;
    }
    .auth-panel {
        position: relative;
        max-width: 460px;
        margin: 0 auto;
        padding: 36px 36px 32px;
        border: 1px solid #eceef1;
        border-radius: 20px;
        background: var(--auth-surface);
        box-shadow: 0 24px 60px rgba(21, 23, 25, .10), 0 2px 6px rgba(21, 23, 25, .04);
        overflow: hidden;
    }
    /* Brand accent line on top of the card */
    .auth-panel::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--auth-red) 0%, var(--auth-red) 35%, var(--auth-red-light) 100%);
    }
    .auth-brand-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 0 28px;
        text-align: center;
    }
    .auth-title,
    .auth-lead {
        text-align: center;
    }
    .auth-foot {
        margin-top: 24px;
    }
    /* 16px inputs stop iOS Safari from zooming into the field */
    .auth-field .form-control {
        height: 50px;
        font-size: 16px;
    }
    .auth-field .input-group-text,
    .auth-eye {
        width: 48px;
    }
    .auth-panel .btn-auth {
        height: 50px;
        font-size: 1rem;
    }
}

/* --- Tablet portrait (576px - 991px): a bit more breathing room ------------ */
@media (min-width: 576px) and (max-width: 991.98px) {
    .auth-panel {
        padding: 44px 44px 36px;
    }
    .auth-title {
        font-size: 1.75rem;
    }
}

/* --- Phone (below 576px) --------------------------------------------------- */
@media (max-width: 575.98px) {
    body.login-page.auth-page {
        background:
            radial-gradient(120% 40% at 100% 0%, rgba(206, 28, 23, .12), transparent 70%),
            #f4f5f7;
    }
    .auth-main {
        justify-content: flex-start;
        padding: max(20px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    }
    .auth-panel {
        margin-top: auto;
        margin-bottom: auto;
        padding: 30px 22px 26px;
        border-radius: 18px;
    }
    .auth-brand-mobile {
        margin-bottom: 22px;
    }
    .auth-brand-mobile img {
        max-height: 32px;
    }
    .auth-title {
        font-size: 1.5rem;
    }
    .auth-lead {
        margin-bottom: 1.5rem;
        font-size: .9375rem;
    }
    .auth-field {
        margin-bottom: 1.1rem;
    }
    .auth-aux {
        margin-bottom: 1.25rem;
    }
    .auth-panel .alert {
        margin-bottom: 1.25rem;
        padding-top: 12px;
        padding-bottom: 12px;
        font-size: .8125rem;
    }
    /* 2FA code: keep all digits on one line */
    .auth-field .form-control.auth-code {
        height: 56px;
        font-size: 1.35rem;
        letter-spacing: .25em;
        text-indent: .25em;
    }
}

/* --- Small phones (below 360px, e.g. iPhone SE 1st gen, Galaxy Fold) ------ */
@media (max-width: 359.98px) {
    .auth-main {
        padding-left: max(8px, env(safe-area-inset-left));
        padding-right: max(8px, env(safe-area-inset-right));
    }
    .auth-panel {
        padding: 26px 16px 22px;
        border-radius: 16px;
    }
    .auth-title {
        font-size: 1.35rem;
    }
    .auth-field .input-group-text,
    .auth-eye {
        width: 42px;
    }
    .auth-field .form-control.auth-code {
        font-size: 1.15rem;
        letter-spacing: .18em;
        text-indent: .18em;
    }
    .auth-aux {
        font-size: .8125rem;
    }
}

/* --- Landscape phones (short height) -------------------------------------- */
@media (max-width: 991.98px) and (max-height: 500px) and (orientation: landscape) {
    .auth-main {
        justify-content: flex-start;
        padding-top: max(16px, env(safe-area-inset-top));
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
    .auth-panel {
        max-width: 520px;
        padding: 24px 28px 22px;
    }
    .auth-brand-mobile {
        margin-bottom: 14px;
    }
    .auth-lead {
        margin-bottom: 1rem;
    }
    .auth-field {
        margin-bottom: .85rem;
    }
    .auth-field .form-control,
    .auth-panel .btn-auth {
        height: 44px;
    }
}

/* --- Touch devices: no sticky hover, larger tap areas --------------------- */
@media (hover: none) and (pointer: coarse) {
    .auth-panel .btn-auth:hover {
        border-color: var(--auth-red);
        background: var(--auth-red);
    }
    .auth-panel .btn-auth:active {
        border-color: var(--auth-red-dark);
        background: var(--auth-red-dark);
    }
    .auth-panel .icheck-primary label {
        min-height: 26px;
        line-height: 26px;
    }
}

/* --- Windows high contrast / forced colours ------------------------------- */
@media (forced-colors: active) {
    .auth-panel {
        border: 1px solid CanvasText;
    }
    .auth-field .input-group {
        border: 1px solid CanvasText;
    }
    .auth-panel .btn-auth {
        border: 1px solid ButtonText;
    }
}

/* --- Print: only the form ------------------------------------------------- */
@media print {
    .auth-aside {
        display: none !important;
    }
    .auth-panel {
        box-shadow: none !important;
    }
}