html,
body {
    height: 100%;
}

body.register-wizard-page.login-page {
    width: 100%;
    min-height: 100dvh;
    height: 100dvh;
    margin: 0;
    padding: clamp(10px, 2vh, 18px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-wizard-card {
    width: min(100%, 460px);
    max-height: calc(100dvh - 20px);
    margin: 0;
    padding: clamp(16px, 2.5vh, 24px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.register-wizard-header {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    text-align: left;
}

.register-wizard-header .login-brand-logo {
    width: 50px;
    height: 50px;
    margin: 0;
}

.register-wizard-heading {
    min-width: 0;
}

.register-wizard-heading .login-title {
    margin: 0;
    font-size: clamp(1.65rem, 7vw, 2rem);
    line-height: 1.05;
}

.register-wizard-heading .login-version {
    margin-top: 4px;
    font-size: .88rem;
}

.register-wizard-progress {
    display: flex;
    gap: 6px;
    align-items: center;
}

.register-wizard-progress span {
    flex: 1 1 0;
    height: 5px;
    border-radius: 999px;
    background: rgba(137, 169, 207, .22);
    transition: background .18s ease, transform .18s ease;
}

.register-wizard-progress span.is-active,
.register-wizard-progress span.is-complete {
    background: #4ea1ff;
}

.register-wizard-progress span.is-active {
    transform: scaleY(1.16);
}

.register-slide {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    animation: registerSlideIn .2s ease-out both;
}

.register-slide[hidden] {
    display: none !important;
}

@keyframes registerSlideIn {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: translateX(0); }
}

.register-slide-title {
    margin: 0;
    font-size: clamp(1.25rem, 5vw, 1.55rem);
    line-height: 1.15;
}

.register-slide-copy {
    margin: 0;
    color: #a9bed8;
    font-size: .9rem;
    line-height: 1.35;
}

.register-method-actions {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.register-wizard-card .auth-form {
    min-height: 0;
    margin: 0;
    display: contents;
}

.register-field-stack {
    display: grid;
    gap: 9px;
}

.register-field {
    display: grid;
    gap: 5px;
}

.register-field label {
    margin: 0;
    font-size: .84rem;
    line-height: 1.1;
}

.register-field input {
    width: 100%;
    height: 46px;
    min-height: 46px;
    margin: 0;
    padding: 0 13px;
}

.register-wizard-card .auth-field-help {
    margin: 0;
    font-size: .76rem;
    line-height: 1.25;
}

.register-slide-actions {
    display: grid;
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
    gap: 9px;
    margin-top: 4px;
}

.register-slide-actions.single {
    grid-template-columns: 1fr;
}

.register-wizard-card .auth-primary-button,
.register-wizard-card .google-button,
.register-wizard-secondary {
    min-height: 46px;
    margin: 0;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font: inherit;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
}

.register-wizard-secondary {
    border: 1px solid rgba(137, 169, 207, .28);
    background: rgba(137, 169, 207, .1);
    color: inherit;
    cursor: pointer;
}

.register-wizard-card .auth-divider {
    margin: 1px 0;
}

.register-wizard-card .auth-terms,
.register-wizard-card .auth-switch,
.register-wizard-card .auth-legal-links {
    margin: 0;
    font-size: .76rem;
    line-height: 1.35;
}

.register-wizard-card .auth-switch {
    text-align: center;
}

.register-wizard-card .auth-legal-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px 12px;
}

.register-security-note {
    margin: 0;
    color: #8fa8c6;
    font-size: .74rem;
    line-height: 1.3;
}

.register-wizard-card .auth-message {
    margin: 0;
    padding: 9px 11px;
    font-size: .8rem;
    line-height: 1.3;
}

@media (max-width: 520px) {
    body.register-wizard-page.login-page {
        padding: 9px;
    }

    .register-wizard-card {
        max-height: calc(100dvh - 18px);
        padding: 15px;
        gap: 11px;
        border-radius: 18px;
    }

    .register-wizard-header {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 10px;
    }

    .register-wizard-header .login-brand-logo {
        width: 44px;
        height: 44px;
    }

    .register-slide {
        gap: 10px;
    }

    .register-field input {
        height: 44px;
        min-height: 44px;
    }
}

@media (max-height: 650px) {
    body.register-wizard-page.login-page {
        padding: 6px;
    }

    .register-wizard-card {
        max-height: calc(100dvh - 12px);
        padding: 12px 14px;
        gap: 8px;
    }

    .register-wizard-header .login-brand-logo {
        width: 38px;
        height: 38px;
    }

    .register-wizard-header {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .register-wizard-heading .login-title {
        font-size: 1.45rem;
    }

    .register-slide {
        gap: 8px;
    }

    .register-field-stack {
        gap: 7px;
    }

    .register-field input {
        height: 40px;
        min-height: 40px;
    }

    .register-wizard-card .auth-primary-button,
    .register-wizard-card .google-button,
    .register-wizard-secondary {
        min-height: 42px;
        padding: 8px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .register-slide {
        animation: none;
    }
}
