.auth-shell {
    max-width: 1040px;
    margin: 52px auto 90px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
    gap: 20px;
    align-items: stretch;
}

.auth-card,
.auth-aside {
    border-radius: var(--surface-radius-lg);
    padding: 42px;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--surface-border);
    box-shadow: var(--surface-highlight), var(--surface-shadow);
}

.auth-card h1 {
    font-size: 42px;
    line-height: 1.1;
    letter-spacing: -.045em;
    margin: 9px 0 12px;
}

.auth-intro,
.auth-switch {
    color: var(--muted);
    margin: 0 0 22px;
}

.auth-switch {
    font-size: 14px;
}

.auth-switch a,
.field-heading a,
.check-legal a {
    font-weight: 700;
    color: #b4386d;
}

.form-stack {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 7px;
}

.field label,
.field-heading,
.form-stack > label:not(.check-row) {
    font-size: 13px;
    font-weight: 700;
}

.field-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.field-heading a {
    font-weight: 600;
    text-decoration: none;
}

.field input,
.form-stack > input:not([type="hidden"]) {
    width: 100%;
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius-sm);
    background: #fbfdff;
    color: var(--ink);
    padding: 14px 15px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.field input:focus,
.form-stack > input:focus {
    border-color: #df5a90;
    box-shadow: 0 0 0 4px rgba(225, 82, 141, .12);
}

.field-error {
    display: block;
    color: #b64027;
    font-size: 12px;
}

.field-error:empty {
    display: none;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
}

.check-row input {
    width: 17px;
    height: 17px;
    margin-top: 3px;
    accent-color: var(--ink);
}

.check-legal {
    line-height: 1.55;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
    margin: 22px 0;
}

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

.external-logins {
    display: grid;
    gap: 10px;
}

.google-identity-login {
    display: grid;
    width: 100%;
    min-width: 0;
    justify-items: stretch;
    gap: 9px;
}

.google-identity-login form {
    display: none;
}

.google-oauth-button {
    appearance: none;
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    box-sizing: border-box;
    border: 1px solid #c9d4df;
    border-radius: var(--surface-radius-sm);
    padding: 12px 18px;
    background: #fff;
    color: #202124;
    box-shadow: 0 1px 3px rgba(15, 47, 73, .12);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.google-oauth-button svg {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
}

.google-oauth-button:hover,
.google-oauth-button:focus-visible {
    border-color: #7e9caf;
    background: #f8fbff;
    box-shadow: 0 0 0 3px rgba(6, 142, 148, .12), 0 2px 6px rgba(15, 47, 73, .14);
    outline: none;
}

.google-oauth-button:disabled,
.google-oauth-button.is-loading {
    pointer-events: none;
    opacity: .65;
}

.google-identity-status {
    margin: 0;
    color: #b64027;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.google-identity-status[data-state="loading"] {
    color: var(--muted);
}

.google-identity-legal {
    max-width: 400px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

.google-identity-legal a {
    color: var(--teal, #068e94);
    font-weight: 700;
}

.external-login-button {
    min-height: 52px;
}

.google-login-button {
    border: 1px solid #dadce0;
    border-radius: var(--surface-radius-sm);
    background: #fff;
    color: #202124;
    box-shadow: 0 1px 2px rgba(60, 64, 67, .18);
    font-weight: 700;
}

.google-login-button:hover,
.google-login-button:focus-visible {
    border-color: #c6cbd1;
    background: #f8faff;
    box-shadow: 0 2px 5px rgba(60, 64, 67, .24);
}

.google-login-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.auth-aside {
    border: 1px solid rgba(255, 255, 255, .12);
    background: var(--ink);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 540px;
    position: relative;
    overflow: hidden;
}

.auth-aside::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: var(--lime);
    right: -95px;
    top: -75px;
    opacity: .92;
}

.auth-aside h2 {
    font-size: 38px;
    line-height: 1.15;
    letter-spacing: -.04em;
    margin: 12px 0 15px;
    position: relative;
}

.auth-aside p {
    color: #b9c5c0;
    margin: 0;
    position: relative;
}

.auth-aside .eyebrow {
    color: var(--lime);
    position: relative;
}

.status-message {
    border: 1px solid transparent;
    border-radius: var(--surface-radius-sm);
    padding: 12px 14px;
    font-size: 13px;
    margin: 12px 0;
}

.status-error {
    border-color: #f2c4b8;
    background: #ffebe5;
    color: #9b351d;
}

.status-info {
    border-color: #efbed2;
    background: #fff0f6;
    color: #a23666;
}

.narrow-shell {
    max-width: 760px;
}

@media (max-width: 800px) {
    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 680px;
    }

    .auth-aside {
        min-height: 300px;
    }

    .auth-card,
    .auth-aside {
        padding: 32px;
    }
}

@media (max-width: 520px) {
    .auth-shell {
        margin-top: 26px;
        padding: 0 16px;
    }

    .auth-card,
    .auth-aside {
        padding: 24px;
        border-radius: 22px;
    }

    .auth-card h1 {
        font-size: 34px;
    }

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

    .auth-aside {
        min-height: 260px;
    }
}
