/**
 * auth styles (Wave D4)
 * Extracted from root styles.css.
 */

/* --- from styles.css L5132-L5625 --- */
/* === Auth Pages (Login/Register) === */
#auth-container {
    --auth-ink: #18313f;
    --auth-text: #334b5b;
    --auth-muted: #667a86;
    --auth-line: rgba(24, 49, 63, 0.13);
    --auth-card-border: rgba(232, 93, 4, 0.16);
    --auth-warm: var(--safety-color, #e85d04);
    --auth-warm-rgb: var(--safety-color-rgb, 232, 93, 4);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background:
        radial-gradient(circle at 10% 16%, rgba(var(--brand-color-rgb), 0.13), transparent 30%),
        radial-gradient(circle at 88% 84%, rgba(var(--auth-warm-rgb), 0.13), transparent 34%),
        linear-gradient(135deg, #f8fafc 0%, #eef6f4 48%, #f7f1ea 100%);
    z-index: 9999;
    padding: 32px;
    padding-top: calc(32px + var(--safe-top, var(--safe-area-inset-top, env(safe-area-inset-top, 0px))));
    overflow-y: auto; /* Enable vertical scrolling */
}

.auth-shell {
    width: min(1160px, 100%);
    min-height: min(620px, calc(100vh - 120px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 450px);
    gap: 56px;
    align-items: center;
    margin: auto;
    flex: 1 0 auto;
}

.auth-marketing {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    min-height: 560px;
    padding: 18px 0 18px 12px;
    margin-bottom: 0;
    border-top: 0;
}

.auth-marketing-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.auth-marketing-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    margin-bottom: 26px;
    color: var(--auth-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-marketing-kicker span:first-child {
    color: var(--brand-fg, var(--brand-color));
}

.auth-marketing-kicker span:last-child {
    color: var(--safety-fg, var(--auth-warm));
}

.auth-marketing-kicker i {
    font-size: 0.95rem;
    color: var(--auth-warm);
    opacity: 0.82;
}

.auth-marketing h1 {
    max-width: 650px;
    margin: 0;
    color: var(--auth-ink);
    font-size: 3.75rem;
    line-height: 1.05;
    letter-spacing: 0;
}

.auth-marketing-lead {
    max-width: 590px;
    margin: 24px 0 0;
    color: var(--auth-text);
    font-size: 1.12rem;
    line-height: 1.72;
}

.auth-benefit-list {
    display: grid;
    gap: 16px;
    max-width: 610px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.auth-benefit-list li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    color: var(--auth-text);
    font-size: 0.98rem;
    line-height: 1.5;
}

.auth-benefit-list i {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(var(--brand-color-rgb), 0.1);
    color: var(--brand-fg, var(--brand-color));
    font-size: 1.15rem;
}

.auth-benefit-list li:nth-child(2) i {
    background: rgba(var(--auth-warm-rgb), 0.12);
    color: var(--safety-fg, var(--auth-warm));
}

.auth-product-preview {
    position: relative;
    z-index: 1;
    width: min(540px, 88%);
    padding: 22px 0 0;
    border-top: 1px solid var(--auth-line);
}

.auth-preview-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.auth-preview-heading span {
    color: var(--auth-muted);
    font-size: 0.86rem;
}

.auth-preview-heading strong {
    display: block;
    color: var(--auth-ink);
    font-size: 0.98rem;
}

.auth-preview-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.auth-preview-flow div {
    position: relative;
    display: grid;
    gap: 9px;
    align-content: center;
    min-height: 72px;
    padding: 0 18px 0 0;
    background: transparent;
}

.auth-preview-flow div::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, rgba(var(--brand-color-rgb), 0.34), rgba(var(--auth-warm-rgb), 0.34));
}

.auth-preview-flow div:last-child::after {
    display: none;
}

.auth-preview-flow i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(var(--brand-color-rgb), 0.1);
    color: var(--brand-fg, var(--brand-color));
    font-size: 1.08rem;
}

.auth-preview-flow span {
    color: var(--auth-text);
    font-size: 0.83rem;
    font-weight: 700;
}

.auth-preview-meter {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    align-items: center;
    margin-top: 18px;
}

.auth-preview-meter span {
    grid-column: 1 / -1;
    display: block;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(24, 49, 63, 0.11);
}

.auth-preview-meter span::before {
    content: "";
    display: block;
    width: 86%;
    height: 100%;
    background: linear-gradient(90deg, var(--brand-color), var(--auth-warm));
}

.auth-preview-meter strong {
    color: var(--auth-ink);
    font-size: 1.35rem;
}

.auth-preview-meter em {
    color: var(--auth-muted);
    font-size: 0.88rem;
    font-style: normal;
}

.auth-card {
    background: rgba(255, 255, 255, 0.96);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border: 1px solid var(--auth-card-border);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(42, 46, 38, 0.14);
    text-align: center;
    animation: authSlideUp 0.5s ease-out;
    margin: auto 0;
}

@media (max-width: 1080px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr) minmax(370px, 430px);
        gap: 34px;
    }

    .auth-marketing {
        padding-left: 0;
    }

    .auth-marketing h1 {
        font-size: 3.35rem;
    }

    .auth-preview-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    #auth-container {
        padding: 18px;
        padding-top: calc(18px + var(--safe-top, var(--safe-area-inset-top, env(safe-area-inset-top, 0px))));
    }

    .auth-shell {
        display: block;
        min-height: 0;
        width: min(470px, 100%);
    }

    .auth-marketing {
        display: none;
    }

    .auth-card {
        margin: auto;
    }
}

@media (max-width: 480px) and (hover: none) and (pointer: coarse) {
    .auth-card {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .auth-header h2 {
        font-size: 1.5rem;
    }

    .auth-header {
        margin-bottom: 20px;
    }

    #auth-container {
        padding: 12px;
        padding-top: calc(12px + var(--safe-top, var(--safe-area-inset-top, env(safe-area-inset-top, 0px))));
    }
}

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

.auth-header {
    margin-bottom: 30px;
}

.auth-logo {
    margin-bottom: 15px;
}

.auth-logo-fallback-mark {
    display: block;
    width: 72px;
    height: 72px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
}

/* Password field on auth: left lock icon + right show/hide toggle */
#auth-container .password-input-wrapper.input-icon input {
    padding-right: 44px !important;
}

#auth-container .password-input-wrapper .toggle-password-btn {
    right: 6px;
    z-index: 1;
    min-width: 52px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--auth-ink, #18313f);
    background: transparent;
    opacity: 1;
    font-size: 0.75rem;
    font-weight: 700;
}

#auth-container .password-input-wrapper .toggle-password-btn:hover,
#auth-container .password-input-wrapper .toggle-password-btn:focus,
#auth-container .password-input-wrapper .toggle-password-btn:active {
    background: transparent;
    color: var(--auth-ink, #18313f);
    box-shadow: none;
}

#auth-container .password-input-wrapper .toggle-password-btn:focus-visible {
    outline: 2px solid var(--brand-color, #0d3b66);
    outline-offset: 2px;
    background: transparent;
}

#auth-container .password-input-wrapper .toggle-password-text {
    line-height: 1;
}

#auth-container .password-input-wrapper .toggle-password-btn i {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    font-size: 1.15rem;
}

.auth-header h2 {
    margin: 0 0 10px;
    color: var(--brand-fg, var(--primary-color));
    font-size: 1.8rem;
}

.auth-header p {
    margin: 0;
    color: var(--auth-muted, var(--secondary-color));
    font-size: 0.95rem;
}

.auth-view {
    display: none;
}

.auth-view.active {
    display: block;
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-view h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: var(--auth-ink, var(--text-color));
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--auth-ink, var(--text-color));
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-muted, var(--secondary-color));
    font-size: 1.2rem;
    /* Prevent fallback box/text display */
    font-family: "Phosphor" !important;
    font-variant: normal;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
}

.input-icon input {
    width: 100%;
    padding: 12px 15px 12px 45px !important;
    border: 1px solid rgba(24, 49, 63, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-icon input:focus {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px rgba(var(--brand-color-rgb), 0.12);
    outline: none;
}

.auth-public-footer {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    align-self: stretch;
    text-align: center;
    margin-top: 16px;
    padding: 8px 16px 0;
    color: var(--auth-muted);
    font-size: 0.82rem;
}

.auth-public-footer a {
    color: var(--brand-color);
}

#auth-container .btn-primary {
    background: var(--brand-color);
    border-color: var(--brand-color);
    color: var(--text-on-brand);
}

#auth-container .btn-primary:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
}

.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    margin-top: 10px;
}

.auth-footer {
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--auth-muted, var(--secondary-color));
}

.auth-footer a {
    color: var(--safety-fg, var(--accent-color));
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-footer .android-download-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-weight: 600;
}

html.is-native-shell #android-download-link,
html.is-ios #android-download-link,
html.is-ios [data-android-download] {
    display: none !important;
}

.auth-footer .android-download-link i {
    font-size: 1.15em;
}

.error-message {
    color: var(--error-text, var(--error-color));
    background: rgba(231, 76, 60, 0.1);
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 0.9rem;
}

.success-message {
    color: var(--success-text, var(--success-color));
    background: rgba(39, 174, 96, 0.1);
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 0.9rem;
}

/* Security Warning for Superadmin Login */
.security-warning {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px !important;
    border-left: 4px solid #e06c75 !important;
    border-radius: 6px !important;
    background-color: rgba(230, 108, 117, 0.1) !important;
    font-size: 0.85rem !important;
    color: #e06c75 !important;
    margin-bottom: 16px;
    animation: slideDown 0.4s ease-out;
}

.security-warning strong {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.security-warning strong::before {
    content: '⚠️';
    font-size: 1.1rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   AUTH EXPERIENCE V2 — aligned with the APK speed-first shell
   ============================================================ */

.auth-view-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--auth-warm, #e85d04);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.auth-view-lead {
    margin: -14px 0 24px;
    color: var(--auth-muted, #667a86);
    font-size: 0.88rem;
    line-height: 1.5;
}

.auth-invite-banner {
    margin: -8px 0 18px;
    padding: 10px 12px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent-color, #4F46E5) 10%, transparent);
    color: var(--text-primary, #16324f);
    font-size: 0.86rem;
    line-height: 1.45;
}

.auth-invite-banner[hidden] {
    display: none !important;
}

.auth-register-progress {
    display: grid;
    grid-template-columns: max-content minmax(32px, 1fr) max-content;
    align-items: center;
    gap: 10px;
    margin: 22px 0 8px;
}

.auth-register-progress > i {
    height: 2px;
    border-radius: 999px;
    background: var(--auth-line);
    transition: background 180ms ease;
}

#register-view[data-step="2"] .auth-register-progress > i {
    background: linear-gradient(90deg, var(--auth-warm), var(--brand-color));
}

.auth-register-progress-step {
    display: grid;
    grid-template-columns: 30px auto;
    align-items: center;
    gap: 7px;
    color: var(--auth-muted);
}

.auth-register-progress-step b {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--auth-muted);
    font-size: 0.78rem;
    transition: all 180ms ease;
}

.auth-register-progress-step em {
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}

.auth-register-progress-step.is-active,
.auth-register-progress-step.is-complete {
    color: var(--auth-ink);
}

.auth-register-progress-step.is-active b {
    border-color: var(--auth-warm);
    background: rgba(var(--auth-warm-rgb), 0.12);
    color: var(--auth-warm);
    box-shadow: 0 0 0 3px rgba(var(--auth-warm-rgb), 0.08);
}

.auth-register-progress-step.is-complete b {
    border-color: var(--brand-color);
    background: var(--brand-color);
    color: #ffffff;
}

.auth-step-indicator {
    margin: 0 0 18px;
    color: var(--auth-muted);
    font-size: 0.72rem;
    text-align: left;
}

@media (max-width: 600px) {
    #auth-container {
        --auth-mobile-bg: #0b3046;
        --auth-mobile-panel: #ffffff;
        --auth-mobile-soft: #f4f8f8;
        --auth-mobile-ink: #122b3d;
        --auth-mobile-muted: #687c8e;
        --auth-mobile-line: #dce7e8;
        min-height: 100dvh;
        height: 100%;
        padding: calc(18px + var(--safe-top, env(safe-area-inset-top, 0px))) 14px
            calc(18px + var(--safe-bottom, env(safe-area-inset-bottom, 0px)));
        background:
            radial-gradient(circle at 88% 7%, rgba(232, 93, 4, 0.38), transparent 170px),
            radial-gradient(circle at 5% 96%, rgba(79, 151, 169, 0.2), transparent 210px),
            linear-gradient(160deg, #164a63 0%, var(--auth-mobile-bg) 42%, #082639 100%);
        color: var(--auth-mobile-ink);
        scroll-padding-bottom: 24px;
    }

    #auth-container::before {
        content: "";
        position: fixed;
        top: 72px;
        left: -62px;
        width: 150px;
        height: 150px;
        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 44px;
        transform: rotate(24deg);
        pointer-events: none;
    }

    .auth-shell {
        display: block;
        width: min(100%, 470px);
        min-height: auto;
        margin: 0 auto;
    }

    .auth-card {
        width: 100%;
        max-width: none;
        margin: 0 auto;
        padding: 18px;
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 28px;
        background: var(--auth-mobile-panel);
        box-shadow: 0 26px 60px rgba(3, 20, 31, 0.3);
        color: var(--auth-mobile-ink);
        text-align: left;
    }

    .auth-header {
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr);
        align-items: center;
        gap: 13px;
        margin: 0 0 24px;
        padding: 12px;
        border: 1px solid var(--auth-mobile-line);
        border-radius: 20px;
        background:
            radial-gradient(circle at 100% 0, rgba(232, 93, 4, 0.1), transparent 90px),
            var(--auth-mobile-soft);
    }

    .auth-logo {
        display: grid;
        place-items: center;
        width: 54px;
        height: 54px;
        margin: 0;
        border-radius: 17px;
        background: #e7f1f5;
        box-shadow: inset 0 0 0 1px rgba(13, 59, 102, 0.06);
    }

    .auth-logo-fallback-mark {
        width: 40px;
        height: 40px;
        margin: 0;
    }

    #auth-logo-img {
        max-width: 42px !important;
        max-height: 42px !important;
        object-fit: contain;
    }

    .auth-header h2 {
        margin: 0 0 3px;
        color: var(--auth-mobile-ink);
        font-size: 1.05rem;
        font-weight: 850;
        letter-spacing: -0.015em;
        line-height: 1.2;
    }

    .auth-header p {
        grid-column: 2;
        display: -webkit-box;
        margin: 0;
        overflow: hidden;
        color: var(--auth-mobile-muted);
        font-size: 0.7rem;
        line-height: 1.4;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .auth-view.active {
        animation: authViewEnter 240ms ease both;
    }

    .auth-view h3 {
        margin: 0 0 20px;
        color: var(--auth-mobile-ink);
        font-size: clamp(1.45rem, 7vw, 1.8rem);
        font-weight: 850;
        letter-spacing: -0.035em;
        line-height: 1.1;
    }

    .auth-view-lead {
        margin: -12px 0 22px;
        color: var(--auth-mobile-muted);
        font-size: 0.82rem;
        line-height: 1.5;
    }

    #register-view .auth-view-lead {
        max-width: 36ch;
    }

    #auth-container .form-group {
        margin-bottom: 15px;
    }

    #auth-container .form-group label {
        margin: 0 0 7px;
        color: var(--auth-mobile-ink);
        font-size: 0.78rem;
        font-weight: 740;
    }

    #auth-container .input-icon {
        position: relative;
    }

    #auth-container .input-icon > i {
        left: 16px;
        color: #6d8292;
        font-size: 1.12rem;
    }

    #auth-container .input-icon input,
    #auth-container .form-group > input,
    #auth-container .form-group select {
        min-height: 54px;
        padding: 12px 14px 12px 48px !important;
        border: 1px solid var(--auth-mobile-line);
        border-radius: 16px;
        background: var(--auth-mobile-soft);
        color: var(--auth-mobile-ink);
        font-size: 1rem;
        box-shadow: none;
        caret-color: var(--auth-warm);
    }

    #auth-container .input-icon input::placeholder {
        color: #9aabb6;
    }

    #auth-container .input-icon input:focus,
    #auth-container .form-group > input:focus,
    #auth-container .form-group select:focus {
        border-color: var(--auth-warm);
        outline: none;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(var(--auth-warm-rgb), 0.1);
    }

    #auth-container .password-input-wrapper.input-icon input {
        padding-right: 74px !important;
    }

    #auth-container .password-input-wrapper .toggle-password-btn {
        right: 7px;
        min-width: 60px;
        min-height: 40px;
        border-radius: 12px;
        color: var(--auth-mobile-muted);
        background: rgba(255, 255, 255, 0.76);
    }

    #auth-container .password-input-wrapper .toggle-password-btn:hover,
    #auth-container .password-input-wrapper .toggle-password-btn:focus,
    #auth-container .password-input-wrapper .toggle-password-btn:active {
        color: var(--auth-mobile-ink);
        background: #ffffff;
    }

    #auth-container .btn-primary,
    #auth-container .btn-secondary {
        min-height: 54px;
        border-radius: 16px;
        font-size: 0.92rem;
        font-weight: 790;
        box-shadow: none;
    }

    #auth-container .btn-primary {
        border-color: var(--auth-warm);
        background: linear-gradient(135deg, #f16b22, #e65300);
        color: #ffffff;
        box-shadow: 0 12px 25px rgba(var(--auth-warm-rgb), 0.22);
    }

    #auth-container .btn-primary:hover,
    #auth-container .btn-primary:focus {
        border-color: #d94f00;
        background: linear-gradient(135deg, #ed6215, #d94f00);
    }

    #auth-container .btn-secondary {
        border: 1px solid var(--auth-mobile-line);
        background: var(--auth-mobile-soft);
        color: var(--auth-mobile-ink);
    }

    #auth-container .btn-block {
        margin-top: 7px;
    }

    #auth-container .toolbar-group {
        display: grid;
        grid-template-columns: minmax(110px, 0.75fr) minmax(0, 1.25fr);
        gap: 9px;
    }

    #auth-container .auth-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 11px;
        margin-top: 20px;
        padding: 16px 12px 2px;
        border-top: 1px solid var(--auth-mobile-line);
        color: var(--auth-mobile-muted);
        font-size: 0.78rem;
        text-align: center;
    }

    #auth-container .auth-footer a {
        color: var(--auth-warm);
        font-weight: 750;
    }

    #auth-container .auth-forgot-link {
        align-self: flex-end;
        margin-top: -2px;
    }

    #auth-container .auth-account-switch {
        display: inline-flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    #auth-container .auth-footer .android-download-link {
        min-height: 38px;
        margin-top: 0;
        padding: 0 12px;
        border: 1px solid var(--auth-mobile-line);
        border-radius: 999px;
        background: var(--auth-mobile-soft);
        color: var(--auth-mobile-ink);
    }

    #auth-container .error-message,
    #auth-container .success-message {
        margin-top: 13px;
        padding: 11px 13px;
        border-radius: 14px;
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .auth-register-progress {
        margin-top: 20px;
    }

    .auth-register-progress-step b {
        background: var(--auth-mobile-soft);
    }

    .auth-step-indicator {
        margin-bottom: 15px;
        color: var(--auth-mobile-muted);
        text-align: center;
    }

    #register-view[data-step="2"] .auth-register-progress-step:first-child b {
        font-size: 0;
    }

    #register-view[data-step="2"] .auth-register-progress-step:first-child b::after {
        content: "✓";
        font-size: 0.82rem;
    }

    #register-view .auth-footer {
        margin-top: 14px;
    }

    .auth-public-footer {
        margin: 12px auto 0;
        padding: 6px 10px 0;
        color: rgba(255, 255, 255, 0.58);
        font-size: 0.68rem;
        line-height: 1.6;
    }

    .auth-public-footer a {
        color: rgba(255, 255, 255, 0.86);
        text-underline-offset: 2px;
    }

    html.is-native-shell .auth-public-footer {
        padding-bottom: var(--safe-bottom, env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 600px) and (max-height: 720px) {
    .auth-card {
        padding: 14px;
        border-radius: 24px;
    }

    .auth-header {
        grid-template-columns: 46px minmax(0, 1fr);
        margin-bottom: 18px;
        padding: 9px;
    }

    .auth-logo {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .auth-logo-fallback-mark {
        width: 34px;
        height: 34px;
    }

    .auth-view h3 {
        font-size: 1.35rem;
    }

    #auth-container .form-group {
        margin-bottom: 12px;
    }

    #auth-container .input-icon input {
        min-height: 50px;
    }
}

body[data-theme="dark"] #auth-container {
    --auth-mobile-panel: #152532;
    --auth-mobile-soft: #1b303e;
    --auth-mobile-ink: #f4f8fa;
    --auth-mobile-muted: #a9bac5;
    --auth-mobile-line: rgba(211, 230, 238, 0.15);
}

@media (max-width: 600px) {
    body[data-theme="dark"] .auth-card {
        border-color: rgba(255, 255, 255, 0.08);
        background: var(--auth-mobile-panel);
    }

    body[data-theme="dark"] .auth-header,
    body[data-theme="dark"] #auth-container .input-icon input,
    body[data-theme="dark"] #auth-container .form-group > input,
    body[data-theme="dark"] #auth-container .form-group select {
        background: var(--auth-mobile-soft);
    }

    body[data-theme="dark"] #auth-container .input-icon input:focus {
        background: #203846;
    }

    body[data-theme="dark"] #auth-container .password-input-wrapper .toggle-password-btn {
        background: rgba(255, 255, 255, 0.06);
    }
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes authViewEnter {
        from {
            opacity: 0;
            transform: translateY(7px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

