.app-body-auth {
    padding-top: 0;
}

.app-body-auth .app-page-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.auth-pane {
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.auth-pane-active {
    opacity: 1;
    transform: translateY(0);
}

.auth-hero-header {
    min-height: 4rem;
}

.auth-public-nav {
    align-self: center;
    min-height: 4rem;
}

.auth-public-nav a {
    color: #000;
}

.auth-public-nav a:hover,
.auth-public-nav a:focus {
    color: var(--ecs-color-primary);
}

.auth-brand {
    position: relative;
    z-index: 2;
    margin-right: 0;
    cursor: pointer;
    text-decoration: none;
}

.auth-brand:hover,
.auth-brand:focus,
.auth-brand:focus-visible {
    color: inherit;
    outline: none;
}

.auth-brand .app-brand-logo {
    height: 4.85rem;
    max-width: min(21rem, 52vw);
}

.auth-mobile-logo {
    height: 3.95rem;
    max-width: min(16.5rem, 64vw);
}

.auth-mobile-brand {
    position: relative;
    z-index: 2;
    color: inherit;
    cursor: pointer;
}

.auth-mobile-brand:hover,
.auth-mobile-brand:focus,
.auth-mobile-brand:focus-visible {
    color: inherit;
    outline: none;
}

.auth-hero-logo-panel {
    transform: translateY(-2.25rem);
}

.auth-register-grid {
    column-gap: 1.5rem;
    row-gap: 1.75rem;
}

.auth-register-panel .auth-content-shell {
    max-width: 47rem;
}

.auth-register-content {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 1024px) {
    .auth-register-panel {
        padding: 2rem 2.5rem;
    }

    .auth-register-panel .auth-top-actions {
        margin-bottom: 2rem;
    }

    .auth-register-panel .auth-content-shell {
        padding-bottom: 2rem;
    }
}

.auth-login-field {
    position: relative;
    border: 1px solid #d7d2db;
    border-radius: 1rem;
    background: #fff;
    min-height: 4.75rem;
    padding: 1rem 1.5rem 0.85rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-login-field:focus-within {
    border-color: rgba(206, 50, 105, 0.42);
    box-shadow: 0 0 0 4px rgba(206, 50, 105, 0.08), 0 10px 30px rgba(15, 23, 42, 0.04);
}

.auth-login-field.is-invalid,
.auth-otp-field.is-invalid,
.auth-login-field.is-invalid:focus-within,
.auth-otp-field.is-invalid:focus-within {
    border-color: var(--ecs-color-primary) !important;
    box-shadow: 0 0 0 4px rgba(206, 50, 105, 0.12), 0 10px 30px rgba(15, 23, 42, 0.04) !important;
}

.auth-login-field.is-invalid .auth-login-label {
    color: var(--ecs-color-primary);
}

.auth-login-label {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8c8c96;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    pointer-events: none;
    text-transform: uppercase;
    transition: top 0.2s ease, transform 0.2s ease, font-size 0.2s ease, font-weight 0.2s ease, letter-spacing 0.2s ease, color 0.2s ease;
}

.auth-login-input {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    outline: none;
    padding: 1.55rem 0 0;
}

.auth-login-input:focus + .auth-login-label,
.auth-login-input:focus ~ .auth-login-label,
.auth-login-input:not(:placeholder-shown) + .auth-login-label,
.auth-login-input:not(:placeholder-shown) ~ .auth-login-label {
    top: 1rem;
    transform: translateY(0);
    color: #8c8c96;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.auth-register-field {
    min-height: 4rem;
    padding: 0.75rem 1.1rem 0.65rem;
}

.auth-register-field .auth-login-label {
    left: 1.1rem;
    font-size: 0.9rem;
}

.auth-register-field .auth-login-input {
    font-size: 0.95rem;
    padding-top: 1.35rem;
}

.auth-register-field .auth-login-input[readonly] {
    cursor: pointer;
}

.auth-register-field .auth-login-input:focus + .auth-login-label,
.auth-register-field .auth-login-input:focus ~ .auth-login-label,
.auth-register-field .auth-login-input:not(:placeholder-shown) + .auth-login-label,
.auth-register-field .auth-login-input:not(:placeholder-shown) ~ .auth-login-label,
.auth-register-select-field .auth-login-label {
    top: 0.72rem;
    font-size: 0.68rem;
}

.auth-register-grid {
    gap: 0.55rem 1rem;
}

#registerForm > :not([hidden]) ~ :not([hidden]),
#registerStep1 > :not([hidden]) ~ :not([hidden]),
#registerPane2 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 1.15rem;
}

#registerPane2 .grid {
    row-gap: 0.75rem;
}

.auth-register-progress {
    display: grid;
    gap: 0.75rem;
}

.auth-register-progress-track {
    display: none;
    width: 100%;
    height: 0.35rem;
    overflow: hidden;
    border-radius: 999px;
    background: #efecef;
}

.auth-register-progress-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ecs-color-primary) 0%, #e35a8a 100%);
    transition: width 0.25s ease;
}

.auth-register-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.auth-register-step {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 3rem;
    border: 1px solid #ebe7ed;
    border-radius: 1.2rem;
    background: #faf9fb;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.72rem 0.95rem;
}

.auth-register-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e4e0e7;
    color: inherit;
    font-size: 0.78rem;
    font-weight: 800;
}

.auth-register-step-label {
    min-width: 0;
    line-height: 1.2;
}

.auth-register-step.is-active {
    border-color: #ecdbe3;
    background: #fff5f8;
    color: var(--ecs-color-primary);
    font-weight: 800;
}

.auth-register-step.is-active .auth-register-step-num {
    border-color: transparent;
    background: var(--ecs-color-primary);
    color: #fff;
}

.auth-register-step.is-complete {
    border-color: #d9f0e2;
    background: #f2fbf6;
    color: #047857;
    font-weight: 800;
}

.auth-register-step.is-complete .auth-register-step-num {
    border-color: transparent;
    background: #047857;
    color: #fff;
}

.auth-register-field {
    border-radius: 1rem;
    background: #fff;
}

.auth-register-field .auth-login-label span,
.auth-register-card strong {
    color: var(--ecs-color-primary);
}

.auth-register-error {
    padding-top: 0.22rem;
    color: var(--ecs-color-primary);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
}

.auth-register-error:empty {
    display: none;
}

#registerStep1 .auth-register-error {
    display: block;
    min-height: 1.25rem;
}

.pre-register-spinner {
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 999px;
    animation: pre-register-spin 0.7s linear infinite;
}

@keyframes pre-register-spin {
    to { transform: rotate(360deg); }
}

.auth-login-error {
    display: block;
    min-height: 1.5rem;
}

.auth-register-native-select {
    display: none !important;
}

.auth-register-select {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 1.35rem;
}

.auth-register-rec-select {
    padding-top: 0;
}

.auth-register-select-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    border: 0;
    background: transparent;
    color: #111014;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
    outline: 0;
    padding: 0;
    text-align: left;
}

.auth-register-select-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-register-select-button .material-symbols-outlined {
    color: var(--ecs-color-primary);
    font-size: 1.1rem;
    transition: transform 0.18s ease;
}

.auth-register-select.is-open .auth-register-select-button .material-symbols-outlined {
    transform: rotate(180deg);
}

.auth-register-select-menu {
    position: absolute;
    z-index: 80;
    top: calc(100% + 0.55rem);
    right: -1.1rem;
    left: -1.1rem;
    max-height: 16rem;
    overflow-y: auto;
    padding: 0.4rem;
    border: 1px solid rgba(214, 212, 216, 0.95);
    border-radius: 0.95rem;
    background: #fff;
    box-shadow: 0 1rem 2rem rgba(46, 39, 55, 0.12);
}

.auth-register-select-option {
    display: block;
    width: 100%;
    min-height: 2.35rem;
    padding: 0 0.75rem;
    border: 0;
    border-radius: 0.7rem;
    background: transparent;
    color: #17131c;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: left;
}

.auth-register-select-option:hover,
.auth-register-select-option:focus-visible,
.auth-register-select-option.is-active {
    background: #fff5f8;
    color: var(--ecs-color-primary);
    outline: none;
}

.auth-register-results {
    position: absolute;
    z-index: 75;
    right: 0;
    left: 0;
    margin-top: 0.55rem;
    padding: 0.4rem;
    border: 1px solid rgba(214, 212, 216, 0.95);
    border-radius: 0.95rem;
    background: #fff;
    box-shadow: 0 1rem 2rem rgba(46, 39, 55, 0.12);
    max-height: 240px;
    overflow-y: auto;
}

.auth-register-card {
    border: 1px solid #ebe7ed;
    border-radius: 1.1rem;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.035);
}

.auth-register-card.is-invalid {
    border-color: var(--ecs-color-primary);
    background: #fffafd;
}

.auth-register-rec-card {
    display: grid;
    gap: 0.9rem;
}

.auth-register-rec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth-register-rec-head strong {
    display: block;
    color: #17131c;
    font-size: 0.98rem;
    font-weight: 800;
}

.auth-register-rec-head p {
    margin: 0.15rem 0 0;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 500;
}

.auth-register-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-register-switch span {
    position: relative;
    display: block;
    width: 2.65rem;
    height: 1.45rem;
    border: 1px solid #d8d5dc;
    border-radius: 999px;
    background: #f4f3f5;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.auth-register-switch span::after {
    content: "";
    position: absolute;
    top: 0.19rem;
    left: 0.2rem;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0.2rem 0.45rem rgba(15, 23, 42, 0.16);
    transition: transform 0.18s ease;
}

.auth-register-switch input:checked + span {
    border-color: var(--ecs-color-primary);
    background: var(--ecs-color-primary);
}

.auth-register-switch input:checked + span::after {
    transform: translateX(1.2rem);
}

.auth-register-rec-body {
    display: grid;
    gap: 0.8rem;
}

.auth-register-option-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.auth-register-option-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 3.2rem;
    border: 1px solid #ebe7ed;
    border-radius: 1rem;
    background: #fff;
    color: #17131c;
    font-size: 0.86rem;
    font-weight: 750;
    padding: 0.78rem 0.85rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.03);
}

.auth-register-option-grid .auth-register-option-card span {
    white-space: nowrap;
}

.auth-register-cert-card {
    padding: 0;
}

.auth-register-cert-card .auth-register-error:empty {
    display: none;
}

.auth-register-cert-option {
    border: 0;
    box-shadow: none;
}

.auth-register-checkbox,
.auth-register-rec-option input {
    appearance: none;
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 1.05rem;
    border: 1.5px solid #a8a3ae;
    border-radius: 0.24rem;
    background: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.auth-register-checkbox:checked,
.auth-register-rec-option input:checked {
    border-color: var(--ecs-color-primary);
    background: var(--ecs-color-primary);
}

.auth-register-checkbox:checked::after,
.auth-register-rec-option input:checked::after {
    content: "";
    width: 0.36rem;
    height: 0.6rem;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-0.05rem) rotate(45deg);
}

.auth-register-rec-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    max-height: 11.5rem;
    overflow-y: auto;
    border: 1px solid #ebe7ed;
    border-radius: 0.95rem;
    background: #faf9fb;
    padding: 0.55rem;
    scrollbar-color: rgba(206, 50, 105, 0.35) transparent;
    scrollbar-width: thin;
}

.auth-register-rec-option {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-height: 3.15rem;
    padding: 0.65rem;
    border: 1px solid transparent;
    border-radius: 0.8rem;
    background: #fff;
    color: #3f3f46;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.25;
}

.auth-register-rec-option:hover {
    border-color: #f3c4d4;
    background: #fff5f8;
}

.auth-register-rec-option span {
    display: grid;
    gap: 0.08rem;
}

.auth-register-rec-option strong {
    color: var(--ecs-color-primary);
    font-size: 0.76rem;
    letter-spacing: 0.05em;
}

.auth-register-rec-dynamic {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.auth-register-rec-detail {
    display: grid;
    gap: 0.35rem;
    min-width: 13rem;
    flex: 1 1 13rem;
    color: #6f6b77;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-register-rec-detail input,
.auth-register-rec-detail select {
    min-height: 2.55rem;
    border: 1px solid #d7d2db;
    border-radius: 0.85rem;
    background: #fff;
    color: #111014;
    font-size: 0.9rem;
    font-weight: 700;
    outline: none;
    padding: 0 0.8rem;
    text-transform: none;
}

.auth-register-rec-detail input:focus,
.auth-register-rec-detail select:focus {
    border-color: rgba(206, 50, 105, 0.58);
    box-shadow: 0 0 0 3px rgba(206, 50, 105, 0.08);
}

@media (max-width: 639.98px) {
    .auth-register-option-grid,
    .auth-register-rec-list {
        grid-template-columns: 1fr;
    }
}

.air-datepicker {
    --adp-color-current-date: var(--ecs-color-primary);
    --adp-color: var(--ecs-color-text);
    --adp-accent-color: var(--ecs-color-primary);
    --adp-cell-background-color-selected: var(--ecs-color-primary);
    --adp-cell-background-color-selected-hover: var(--ecs-color-primary-border);
    --adp-cell-background-color-in-range: rgba(206, 50, 105, 0.12);
    --adp-cell-background-color-in-range-hover: rgba(206, 50, 105, 0.18);
    --adp-day-name-color: var(--ecs-color-primary);
    --adp-border-color: rgba(206, 50, 105, 0.16);
    --adp-border-radius: 1rem;
    --adp-font-family: var(--ecs-font-sans);
    z-index: 1300 !important;
    box-shadow: 0 1rem 2.5rem rgba(206, 50, 105, 0.16), 0 0.75rem 1.5rem rgba(15, 23, 42, 0.08);
}

.air-datepicker-cell.-selected-,
.air-datepicker-cell.-selected-.-current- {
    color: #fff;
}

@media (max-width: 639.98px) {
    .auth-register-content {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Register mobile redesign: clean single-column wizard */
@media (max-width: 767.98px) {
    .auth-register-page {
        min-height: 100dvh;
        background: #fff;
    }

    .auth-register-page > .grid {
        min-height: 100dvh;
    }

    .auth-register-page .auth-register-panel {
        display: flex;
        flex-direction: column;
        min-height: 100dvh;
        padding: 0 !important;
        background: #fff;
    }

    .auth-register-page .auth-top-actions {
        position: sticky;
        top: 0;
        z-index: 20;
        flex: 0 0 auto;
        margin: 0 !important;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f0eef2;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(10px);
    }

    .auth-register-page .auth-mobile-logo {
        height: 2.4rem;
        max-width: min(9.75rem, 46vw);
    }

    .auth-register-page .auth-top-actions a.inline-flex {
        min-height: 2.35rem;
        padding: 0 0.95rem;
        font-size: 0.82rem;
        box-shadow: none;
    }

    .auth-register-page .auth-content-shell {
        display: block;
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 1rem 1rem 1.25rem !important;
    }

    .auth-register-page .auth-register-content {
        display: grid;
        gap: 1.15rem;
        padding: 0;
    }

    .auth-register-page .auth-register-content.space-y-10 > :not([hidden]) ~ :not([hidden]),
    .auth-register-page .space-y-8 > :not([hidden]) ~ :not([hidden]),
    .auth-register-page .space-y-6 > :not([hidden]) ~ :not([hidden]),
    .auth-register-page .space-y-5 > :not([hidden]) ~ :not([hidden]),
    .auth-register-page .space-y-4 > :not([hidden]) ~ :not([hidden]),
    .auth-register-page #registerForm > :not([hidden]) ~ :not([hidden]),
    .auth-register-page #registerStep1 > :not([hidden]) ~ :not([hidden]),
    .auth-register-page #registerPane2 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0 !important;
    }

    .auth-register-page #registerForm,
    .auth-register-page #registerStep1,
    .auth-register-page #registerPane2 {
        display: grid;
        gap: 0.9rem;
    }

    .auth-register-page .auth-page-title {
        font-size: 1.85rem !important;
        line-height: 1.08 !important;
        letter-spacing: -0.035em !important;
    }

    .auth-register-page .auth-page-title + p {
        max-width: none;
        margin-top: 0.35rem !important;
        font-size: 0.9rem !important;
        line-height: 1.45 !important;
        color: #66616d !important;
    }

    .auth-register-page .auth-register-progress {
        gap: 0.7rem;
        padding: 0.85rem;
        border: 1px solid #efecef;
        border-radius: 1.1rem;
        background: #faf9fb;
    }

    .auth-register-page .auth-register-progress-track {
        display: block;
    }

    .auth-register-page .auth-register-steps {
        gap: 0.4rem;
    }

    .auth-register-page .auth-register-step {
        flex-direction: column;
        justify-content: center;
        gap: 0.28rem;
        min-height: 3.6rem;
        padding: 0.45rem 0.3rem;
        border: 0;
        border-radius: 0.85rem;
        background: transparent;
        text-align: center;
        font-size: 0.72rem;
        font-weight: 700;
    }

    .auth-register-page .auth-register-step-num {
        width: 1.7rem;
        height: 1.7rem;
        font-size: 0.75rem;
    }

    .auth-register-page .auth-register-step-label {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.7rem;
    }

    .auth-register-page .auth-register-step.is-active {
        background: #fff;
        box-shadow: 0 0.35rem 0.9rem rgba(206, 50, 105, 0.1);
    }

    .auth-register-page .auth-register-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .auth-register-page .auth-register-grid > .sm\:col-span-12,
    .auth-register-page .auth-register-grid > .sm\:col-span-6,
    .auth-register-page .auth-register-grid > .sm\:col-span-4 {
        grid-column: auto;
        width: 100%;
    }

    .auth-register-page .auth-register-grid > .sm\:col-span-12.flex {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 5.5rem;
        gap: 0.65rem !important;
    }

    .auth-register-page .auth-register-grid > .sm\:col-span-12.flex > .w-full {
        width: auto;
    }

    .auth-register-page .auth-register-field {
        min-height: 3.65rem;
        padding: 0.7rem 0.95rem 0.55rem;
        border-radius: 0.95rem;
        border-color: #e4e0e7;
        box-shadow: none;
        background: #fff;
    }

    .auth-register-page .auth-register-field:focus-within {
        border-color: rgba(206, 50, 105, 0.45);
        box-shadow: 0 0 0 3px rgba(206, 50, 105, 0.08);
    }

    .auth-register-page .auth-register-field .auth-login-label {
        left: 0.95rem;
        font-size: 0.8rem;
        text-transform: none;
        letter-spacing: 0;
        font-weight: 650;
        color: #7a7580;
    }

    .auth-register-page .auth-register-field .auth-login-input {
        font-size: 0.95rem;
        font-weight: 650;
        padding-top: 1.15rem;
    }

    .auth-register-page .auth-register-field .auth-login-input:focus + .auth-login-label,
    .auth-register-page .auth-register-field .auth-login-input:focus ~ .auth-login-label,
    .auth-register-page .auth-register-field .auth-login-input:not(:placeholder-shown) + .auth-login-label,
    .auth-register-page .auth-register-field .auth-login-input:not(:placeholder-shown) ~ .auth-login-label,
    .auth-register-page .auth-register-select-field .auth-login-label {
        top: 0.55rem;
        font-size: 0.68rem;
        font-weight: 750;
        letter-spacing: 0.02em;
        text-transform: none;
    }

    .auth-register-page .auth-register-select {
        padding-top: 1.15rem;
    }

    .auth-register-page .auth-register-select-button {
        font-size: 0.95rem;
        font-weight: 650;
    }

    .auth-register-page .auth-register-select-menu {
        right: -0.95rem;
        left: -0.95rem;
        max-height: 12.5rem;
    }

    .auth-register-page .auth-register-error {
        min-height: 0;
        padding-top: 0.2rem;
        font-size: 0.74rem;
    }

    .auth-register-page #registerStep1 .auth-register-error {
        min-height: 0.95rem;
    }

    .auth-register-page .auth-register-card {
        border-radius: 1rem;
        border-color: #efecef;
        padding: 0.9rem;
        box-shadow: none;
        background: #faf9fb;
    }

    .auth-register-page .auth-register-rec-head {
        align-items: flex-start;
        gap: 0.75rem;
    }

    .auth-register-page .auth-register-rec-head strong {
        font-size: 0.92rem;
    }

    .auth-register-page .auth-register-rec-head p {
        margin-top: 0.2rem;
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .auth-register-page .auth-register-rec-list {
        max-height: 10rem;
        gap: 0.4rem;
        padding: 0.45rem;
        border-radius: 0.85rem;
        background: #fff;
    }

    .auth-register-page .auth-register-option-grid {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .auth-register-page .auth-register-option-card {
        min-height: 3rem;
        border-radius: 0.95rem;
        border-color: #e8e4eb;
        background: #fff;
        font-size: 0.86rem;
        line-height: 1.3;
        padding: 0.7rem 0.8rem;
    }

    .auth-register-page .flex.justify-end,
    .auth-register-page .flex.flex-col.gap-3 {
        position: sticky;
        bottom: 0;
        z-index: 15;
        gap: 0.55rem !important;
        margin: 0.35rem -1rem -0.35rem;
        padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid #f0eef2;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(10px);
    }

    .auth-register-page #btnNextStep,
    .auth-register-page #btnSubmitForm,
    .auth-register-page #btnPrevStep,
    .auth-register-page #backToRegister,
    .auth-register-page #verifyOtp {
        width: 100%;
        min-height: 3rem !important;
        border-radius: 0.95rem !important;
        font-size: 0.96rem !important;
        box-shadow: none !important;
    }

    .auth-register-page #btnNextStep,
    .auth-register-page #btnSubmitForm,
    .auth-register-page #verifyOtp {
        background: var(--ecs-color-primary) !important;
        color: #fff !important;
    }

    .auth-register-page #otpSection {
        display: grid;
        gap: 1rem;
    }

    .auth-register-page #otpSection h2 {
        font-size: 1.75rem !important;
        line-height: 1.08 !important;
    }

    .auth-register-page #otpSection .rounded-\[2rem\],
    .auth-register-page #otpSection .space-y-5 {
        border-radius: 1.1rem !important;
        padding: 1rem !important;
        box-shadow: none !important;
        background: #faf9fb !important;
    }

    .auth-register-page #otpField {
        border-radius: 0.95rem;
        padding: 0.85rem !important;
    }

    .auth-register-page #otp {
        font-size: 1.45rem !important;
        letter-spacing: 0.24em !important;
    }

    .auth-register-page .auth-footer {
        display: none;
    }
}

/* Login mobile: center form between header and footer, keep desktop look. */
@media (max-width: 767.98px) {
    .auth-login-page {
        min-height: 100dvh;
    }

    .auth-login-page .auth-main-panel {
        display: flex;
        flex-direction: column;
        min-height: 100dvh;
        padding: 0.9rem 1.1rem 0.9rem !important;
    }

    .auth-login-page .auth-top-actions {
        flex: 0 0 auto;
        margin-bottom: 0 !important;
        gap: 0.65rem;
    }

    .auth-login-page .auth-mobile-logo {
        height: 2.75rem;
        max-width: min(11rem, 50vw);
    }

    .auth-login-page .auth-top-actions a.inline-flex {
        min-height: 2.55rem;
        padding-left: 1.05rem;
        padding-right: 1.05rem;
        font-size: 0.86rem;
        box-shadow: 0 0.55rem 1.1rem rgba(206, 50, 105, 0.16);
    }

    .auth-login-page .auth-content-shell {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        max-width: 24rem;
        margin-left: auto;
        margin-right: auto;
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }

    .auth-login-page .auth-content-shell .space-y-8 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 1.35rem !important;
    }

    .auth-login-page .auth-content-shell .space-y-5 > :not([hidden]) ~ :not([hidden]),
    .auth-login-page .auth-content-shell .space-y-4 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0.9rem !important;
    }

    .auth-login-page .auth-page-title {
        font-size: clamp(2.15rem, 9vw, 2.6rem) !important;
        line-height: 1.02 !important;
        letter-spacing: -0.04em !important;
    }

    .auth-login-page .auth-page-title + p,
    .auth-login-page #otpMessage {
        max-width: none;
        margin-top: 0.65rem !important;
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }

    .auth-login-page .auth-login-field {
        min-height: 4.1rem;
        padding: 0.85rem 1.1rem 0.7rem;
        border-radius: 1rem;
        box-shadow: 0 0.55rem 1.15rem rgba(15, 23, 42, 0.04);
    }

    .auth-login-page .auth-login-label {
        left: 1.1rem;
        font-size: 0.9rem;
    }

    .auth-login-page .auth-login-input {
        font-size: 0.98rem;
        padding-top: 1.35rem;
    }

    .auth-login-page .auth-login-input:focus + .auth-login-label,
    .auth-login-page .auth-login-input:focus ~ .auth-login-label,
    .auth-login-page .auth-login-input:not(:placeholder-shown) + .auth-login-label,
    .auth-login-page .auth-login-input:not(:placeholder-shown) ~ .auth-login-label {
        top: 0.78rem;
        font-size: 0.72rem;
    }

    .auth-login-page form button[type="submit"],
    .auth-login-page #verifyForm {
        min-height: 3.35rem !important;
        border-radius: 1.05rem !important;
        font-size: 1.02rem !important;
        box-shadow: 0 0.8rem 1.6rem rgba(206, 50, 105, 0.2) !important;
    }

    .auth-login-page form button[type="submit"] .material-symbols-outlined,
    .auth-login-page #verifyForm .material-symbols-outlined {
        font-size: 1.2rem !important;
    }

    .auth-login-page #testRole,
    .auth-login-page #testLoginBtn {
        min-height: 2.75rem;
        border-radius: 0.95rem;
        font-size: 0.9rem;
    }

    .auth-login-page #otpSection h2 {
        font-size: clamp(1.9rem, 8vw, 2.3rem) !important;
        line-height: 1.05 !important;
    }

    .auth-login-page #otpField {
        border-radius: 1rem;
        padding: 0.95rem 1rem !important;
    }

    .auth-login-page #otp {
        font-size: 1.65rem !important;
        letter-spacing: 0.3em !important;
    }

    .auth-login-page #otpSection button {
        min-height: 3.1rem !important;
        border-radius: 1rem !important;
        font-size: 0.98rem !important;
    }

    .auth-login-page .auth-footer {
        flex: 0 0 auto;
        margin-top: 0;
        padding-top: 0.9rem !important;
        font-size: 0.74rem !important;
    }

    .auth-login-page .auth-footer .flex {
        gap: 0.55rem !important;
    }

    .auth-login-page .auth-footer .gap-6 {
        gap: 0.9rem !important;
    }
}

@media (min-width: 1024px) and (max-height: 1080px) {
    .auth-hero-header {
        min-height: 3.25rem;
        padding-top: 1.5rem !important;
    }

    .auth-hero-header .app-brand-logo {
        height: 4.55rem !important;
        max-width: min(20rem, 48vw) !important;
    }

    .auth-hero-logo-panel {
        transform: translateY(-3rem) scale(0.9);
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .auth-main-panel {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .auth-top-actions {
        margin-bottom: 0.75rem !important;
    }

    .auth-content-shell {
        padding-bottom: 0.75rem !important;
    }

    .auth-content-shell .space-y-10 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 1rem !important;
    }

    .auth-content-shell .space-y-8 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0.9rem !important;
    }

    .auth-content-shell .space-y-6 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0.75rem !important;
    }

    .auth-content-shell .space-y-5 > :not([hidden]) ~ :not([hidden]),
    .auth-content-shell .space-y-4 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0.75rem !important;
    }

    .auth-page-title {
        font-size: 2.625rem !important;
        line-height: 1 !important;
    }

    .auth-page-title + p {
        line-height: 1.45rem !important;
    }

    .auth-login-field {
        min-height: 3.75rem;
        padding-top: 0.65rem;
        padding-bottom: 0.55rem;
    }

    .auth-register-field {
        min-height: 3.35rem;
    }

    .auth-main-panel .min-h-16 {
        min-height: 3.25rem !important;
    }

    .auth-main-panel .min-h-14 {
        min-height: 3rem !important;
    }

    .auth-main-panel .min-h-12 {
        min-height: 2.5rem !important;
    }

    .auth-main-panel .rounded-\[1\.35rem\],
    .auth-main-panel .rounded-\[1\.6rem\],
    .auth-main-panel .rounded-\[2rem\] {
        border-radius: 1rem !important;
    }

    .auth-main-panel .p-6 {
        padding: 1rem !important;
    }

    .auth-main-panel .p-5,
    .auth-main-panel .p-4 {
        padding: 0.85rem !important;
    }

    .auth-register-panel .auth-content-shell {
        padding-bottom: 0.35rem !important;
    }

    .auth-register-panel .auth-page-title {
        font-size: 2.25rem !important;
    }

    .auth-register-panel .auth-page-title + p {
        font-size: 0.9rem !important;
        line-height: 1.35rem !important;
    }

    .auth-register-panel .auth-register-step {
        border-radius: 0.9rem;
        font-size: 0.82rem;
        padding: 0.55rem 0.85rem;
    }

    .auth-register-panel #registerForm > :not([hidden]) ~ :not([hidden]),
    .auth-register-panel #registerStep1 > :not([hidden]) ~ :not([hidden]),
    .auth-register-panel #registerPane2 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0.65rem;
    }

    .auth-register-panel .auth-register-grid {
        gap: 0.25rem 0.75rem;
    }

    .auth-register-panel .auth-register-field {
        min-height: 3rem;
        padding: 0.5rem 0.9rem 0.45rem;
    }

    .auth-register-panel .auth-register-field .auth-login-input {
        font-size: 0.88rem;
        padding-top: 1.12rem;
    }

    .auth-register-panel .auth-register-field .auth-login-label {
        left: 0.9rem;
        font-size: 0.78rem;
    }

    .auth-register-panel .auth-register-field .auth-login-input:focus + .auth-login-label,
    .auth-register-panel .auth-register-field .auth-login-input:focus ~ .auth-login-label,
    .auth-register-panel .auth-register-field .auth-login-input:not(:placeholder-shown) + .auth-login-label,
    .auth-register-panel .auth-register-field .auth-login-input:not(:placeholder-shown) ~ .auth-login-label,
    .auth-register-panel .auth-register-select-field .auth-login-label {
        top: 0.55rem;
        font-size: 0.58rem;
    }

    .auth-register-panel #registerStep1 .auth-register-error {
        min-height: 0.9rem;
    }

    .auth-register-panel .auth-register-error {
        font-size: 0.7rem;
        line-height: 1.15;
        padding-top: 0.08rem;
    }

    .auth-register-panel .auth-register-card {
        border-radius: 0.9rem;
        padding: 0.65rem;
    }

    .auth-register-panel .auth-register-rec-card,
    .auth-register-panel .auth-register-rec-body {
        gap: 0.55rem;
    }

    .auth-register-panel .auth-register-rec-head strong {
        font-size: 0.88rem;
    }

    .auth-register-panel .auth-register-rec-head p {
        font-size: 0.78rem;
    }

    .auth-register-panel .auth-register-rec-list {
        max-height: 7.25rem;
        gap: 0.35rem;
        padding: 0.4rem;
    }

    .auth-register-panel .auth-register-rec-option {
        min-height: 2.25rem;
        padding: 0.4rem;
        font-size: 0.74rem;
    }

    .auth-register-panel .auth-register-option-card {
        min-height: 2.55rem;
        border-radius: 0.85rem;
        font-size: 0.78rem;
        padding: 0.52rem 0.65rem;
    }

    .auth-register-panel .auth-register-select {
        padding-top: 1.12rem;
    }

    .auth-register-panel .auth-register-rec-select {
        padding-top: 0;
    }

    .auth-footer {
        padding-top: 0.75rem !important;
        font-size: 0.78rem !important;
    }
}

.auth-otp-remember {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0;
    padding: 0.95rem 1rem;
    border: 1px solid #ebe7ed;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.03);
    color: #17131c;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.auth-otp-remember:hover,
.auth-otp-remember:focus-within {
    border-color: #f3c4d4;
    background: #fffdfd;
}

.auth-otp-remember:has(input:checked) {
    border-color: #ecdbe3;
    background: #fff5f8;
}

.auth-otp-remember-copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.auth-otp-remember-title {
    color: #17131c;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.auth-otp-remember-sub {
    color: var(--ecs-color-primary);
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 800;
    line-height: 1.3;
}

.auth-otp-remember input[type="checkbox"] {
    appearance: none;
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 1.2rem;
    border: 1.5px solid #a8a3ae;
    border-radius: 0.28rem;
    background: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.auth-otp-remember input[type="checkbox"]:checked {
    border-color: var(--ecs-color-primary);
    background: var(--ecs-color-primary);
}

.auth-otp-remember input[type="checkbox"]:checked::after {
    content: "";
    width: 0.38rem;
    height: 0.62rem;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-0.05rem) rotate(45deg);
}

.auth-otp-note {
    padding: 0.9rem 1rem;
    border: 1px solid #ecdbe3;
    border-radius: 1rem;
    background: #fff5f8;
    color: #4b4654;
}

.auth-otp-note strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #9f1f4c;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.auth-otp-note p {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.45;
}
