body.auth-redesign {
    --auth-canvas: #fafbf7;
    --auth-surface: #ffffff;
    --auth-ink: #183c38;
    --auth-brand: #087b6e;
    --auth-brand-hover: #075e54;
    --auth-line: #dce4de;
    --auth-text-secondary: #5c706b;
    --auth-danger: #9b3038;
    --auth-danger-surface: #fbedef;
    --auth-success: #075e54;
    --auth-success-surface: #e8f3eb;
    --auth-focus: #e7a653;
    margin: 0;
    background: var(--auth-canvas);
    color: var(--auth-ink);
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.auth-redesign *,
.auth-redesign *::before,
.auth-redesign *::after {
    box-sizing: border-box;
}

.auth-redesign a {
    color: var(--auth-brand);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.auth-redesign a:hover {
    color: var(--auth-brand-hover);
}

.auth-redesign :focus-visible {
    outline: 3px solid var(--auth-focus);
    outline-offset: 3px;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    padding: 0 32px;
}

.auth-shell__header,
.auth-shell__main,
.auth-shell__footer {
    width: min(100%, 1240px);
    margin-right: auto;
    margin-left: auto;
}

.auth-shell__header {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--auth-line);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
}

.auth-brand img {
    display: block;
    width: 156px;
    height: auto;
}

.auth-shell__home,
.auth-shell__footer a {
    font-size: 14px;
    font-weight: 600;
}

.auth-shell__main {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    align-items: start;
    gap: 80px;
    padding-top: 72px;
    padding-bottom: 72px;
}

.auth-intro {
    max-width: 430px;
    padding-top: 28px;
}

.auth-eyebrow {
    margin: 0;
    color: var(--auth-brand);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.11em;
    line-height: 1.5;
    text-transform: uppercase;
}

.auth-intro h2 {
    max-width: 430px;
    margin: 16px 0 20px;
    color: var(--auth-ink);
    font-size: clamp(38px, 4.2vw, 54px);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.auth-intro h2 em {
    color: var(--auth-brand);
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
}

.auth-intro__copy {
    max-width: 370px;
    margin: 0;
    color: var(--auth-text-secondary);
    font-size: 17px;
    line-height: 1.7;
}

.auth-intro__note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 360px;
    margin-top: 52px;
    padding-top: 20px;
    border-top: 1px solid var(--auth-line);
}

.auth-intro__rule {
    width: 28px;
    height: 2px;
    flex: 0 0 auto;
    margin-top: 12px;
    background: var(--auth-brand);
}

.auth-intro__note p {
    margin: 0;
    color: var(--auth-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.auth-content {
    width: 100%;
    max-width: 650px;
    justify-self: end;
}

.auth-form-wrap {
    width: 100%;
    max-width: 500px;
    margin-left: auto;
}

.auth-form-wrap--register {
    max-width: 650px;
}

.auth-eyebrow--form {
    margin-bottom: 10px;
}

.auth-title {
    margin: 0;
    color: var(--auth-ink);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.auth-lede {
    max-width: 510px;
    margin: 12px 0 28px;
    color: var(--auth-text-secondary);
    font-size: 16px;
    line-height: 1.65;
}

.auth-form {
    display: grid;
    gap: 20px;
}

.auth-field-grid {
    display: grid;
    gap: 16px;
}

.auth-field-grid--names {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-field {
    min-width: 0;
}

.auth-field label,
.auth-field__label-row label {
    display: block;
    margin-bottom: 8px;
    color: var(--auth-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

.auth-field input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #aebdb6;
    border-radius: 4px;
    background: var(--auth-surface);
    color: var(--auth-ink);
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.auth-field input::placeholder {
    color: #768780;
    opacity: 1;
}

.auth-field input:focus {
    border-color: var(--auth-brand);
    box-shadow: 0 0 0 2px rgb(8 123 110 / 12%);
    outline: none;
}

.auth-field input[aria-invalid='true'] {
    border-color: var(--auth-danger);
}

.auth-field__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.auth-field__label-row label {
    margin-bottom: 8px;
}

.auth-inline-link {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.auth-optional {
    color: var(--auth-text-secondary);
    font-size: 13px;
    font-weight: 400;
}

.auth-field__hint {
    margin: 7px 0 0;
    color: var(--auth-text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.auth-field__error {
    margin: 7px 0 0;
    color: var(--auth-danger);
    font-size: 14px;
    line-height: 1.5;
}

.auth-password-field {
    position: relative;
}

.auth-password-field input {
    padding-right: 72px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    padding: 5px 4px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--auth-brand);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
}

.auth-check-row {
    display: inline-flex;
    width: fit-content;
    align-items: flex-start;
    gap: 10px;
    color: var(--auth-ink);
    cursor: pointer;
    font-size: 14px;
    line-height: 1.55;
}

.auth-check-row input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin: 2px 0 0;
    accent-color: var(--auth-brand);
}

.auth-check-row--terms {
    max-width: 100%;
}

.auth-submit {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid var(--auth-brand);
    border-radius: 4px;
    background: var(--auth-brand);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.4;
    transition: background-color 120ms ease, border-color 120ms ease;
}

.auth-submit:hover {
    border-color: var(--auth-brand-hover);
    background: var(--auth-brand-hover);
}

.auth-alert {
    margin: 0 0 22px;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.55;
}

.auth-alert--success {
    border-color: #c9dfd0;
    background: var(--auth-success-surface);
    color: var(--auth-success);
}

.auth-alert--error {
    border-color: #edcbd0;
    background: var(--auth-danger-surface);
    color: var(--auth-danger);
}

.auth-alert--error > div {
    color: var(--auth-danger);
    font-weight: 600;
}

.auth-alert--error ul {
    margin: 8px 0 0;
    padding-left: 20px;
    color: var(--auth-danger);
}

.auth-alert--error li + li {
    margin-top: 3px;
}

.auth-context-note {
    margin: -8px 0 22px;
    padding: 12px 14px;
    border-left: 3px solid var(--auth-brand);
    background: #edf3ec;
    color: var(--auth-ink);
    font-size: 14px;
    line-height: 1.55;
}

.auth-switch {
    margin: 25px 0 0;
    color: var(--auth-text-secondary);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.auth-switch a {
    font-weight: 600;
}

.auth-switch--secondary {
    margin-top: 18px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 25px 0 14px;
    color: var(--auth-text-secondary);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    flex: 1;
    background: var(--auth-line);
    content: '';
}

.auth-social-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.auth-social-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid var(--auth-line);
    border-radius: 4px;
    background: var(--auth-surface);
    color: var(--auth-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.auth-social-links a:hover {
    border-color: var(--auth-brand);
    color: var(--auth-brand);
}

.auth-password-strength {
    margin-top: 12px;
}

.auth-password-strength__track {
    display: flex;
    gap: 5px;
}

.auth-password-strength__track span {
    height: 4px;
    flex: 1;
    border-radius: 2px;
    background: var(--auth-line);
}

.auth-password-strength[data-strength='1'] .auth-password-strength__track span:nth-child(-n+1),
.auth-password-strength[data-strength='2'] .auth-password-strength__track span:nth-child(-n+2),
.auth-password-strength[data-strength='3'] .auth-password-strength__track span:nth-child(-n+3),
.auth-password-strength[data-strength='4'] .auth-password-strength__track span:nth-child(-n+4) {
    background: var(--auth-brand);
}

.auth-password-strength[data-strength='1'] .auth-field__hint {
    color: var(--auth-danger);
}

.auth-shell__footer {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--auth-line);
    color: var(--auth-text-secondary);
    font-size: 13px;
}

@media (max-width: 960px) {
    .auth-shell__main {
        grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
        gap: 40px;
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .auth-intro h2 {
        font-size: 42px;
    }

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

@media (max-width: 760px) {
    .auth-shell {
        padding-right: 20px;
        padding-left: 20px;
    }

    .auth-shell__header {
        min-height: 76px;
    }

    .auth-brand img {
        width: 142px;
    }

    .auth-shell__main {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        padding-top: 34px;
        padding-bottom: 42px;
    }

    .auth-intro {
        max-width: 620px;
        padding-top: 0;
    }

    .auth-intro h2 {
        max-width: 500px;
        margin-top: 10px;
        margin-bottom: 10px;
        font-size: 34px;
    }

    .auth-intro__copy {
        max-width: 540px;
        font-size: 16px;
    }

    .auth-intro__note {
        display: none;
    }

    .auth-content,
    .auth-form-wrap {
        max-width: none;
        justify-self: stretch;
        margin-left: 0;
    }

    .auth-title {
        font-size: 28px;
    }
}

@media (max-width: 520px) {
    .auth-shell {
        padding-right: 16px;
        padding-left: 16px;
    }

    .auth-shell__header {
        min-height: 68px;
    }

    .auth-brand img {
        width: 128px;
    }

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

    .auth-shell__main {
        gap: 26px;
        padding-top: 28px;
        padding-bottom: 34px;
    }

    .auth-intro h2 {
        font-size: 30px;
    }

    .auth-lede {
        margin-top: 9px;
        margin-bottom: 22px;
    }

    .auth-field-grid--names {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .auth-form {
        gap: 18px;
    }

    .auth-field__label-row {
        align-items: flex-start;
        gap: 8px;
    }

    .auth-field__label-row label {
        margin-right: auto;
    }

    .auth-social-links {
        gap: 8px;
    }

    .auth-shell__footer {
        min-height: 56px;
        font-size: 12px;
    }
}
