.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
    background: #f3f7f9;
}

.auth-panel {
    padding: clamp(28px, 6vw, 72px);
}

.auth-panel--intro {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100vh;
    color: white;
    background:
        radial-gradient(circle at 85% 15%, rgba(246, 196, 67, 0.34), transparent 22rem),
        linear-gradient(150deg, #083f51, #0e5c72);
}

.auth-panel--intro h1 {
    max-width: 720px;
    color: white;
    font-size: clamp(2.8rem, 7vw, 6.5rem);
}

.auth-panel--intro p {
    max-width: 620px;
    color: rgba(255,255,255,.78);
}

.auth-panel--form {
    display: grid;
    align-items: center;
    background: white;
}

.auth-form-wrap {
    width: min(720px, 100%);
    margin-inline: auto;
}

.auth-heading {
    margin-bottom: 28px;
}

.auth-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.6rem);
    color: #083f51;
}

form {
    display: grid;
    gap: 20px;
}

label,
fieldset {
    display: grid;
    gap: 8px;
}

label > span,
legend {
    font-weight: 800;
    color: #263238;
}

input {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid #d7e1e5;
    border-radius: 14px;
    background: #fff;
    color: #263238;
    font: inherit;
}

input:focus {
    outline: 3px solid rgba(14, 92, 114, .14);
    border-color: #0e5c72;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-grid__full {
    grid-column: 1 / -1;
}

.account-types {
    margin: 0;
    padding: 0;
    border: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-types legend {
    grid-column: 1 / -1;
    margin-bottom: 4px;
}

.account-option {
    position: relative;
}

.account-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.account-option > span {
    display: grid;
    gap: 4px;
    min-height: 100%;
    padding: 16px;
    border: 1px solid #d7e1e5;
    border-radius: 16px;
    cursor: pointer;
    transition: .16s ease;
}

.account-option small {
    color: #65727a;
    font-weight: 500;
    line-height: 1.45;
}

.account-option input:checked + span {
    border-color: #0e5c72;
    background: #eff8fa;
    box-shadow: 0 0 0 3px rgba(14, 92, 114, .10);
}

.button--wide {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.field-error {
    color: #b42318;
    font-weight: 700;
}

.alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
}

.alert--success {
    color: #166534;
    background: #dcfce7;
}

.alert--error {
    color: #991b1b;
    background: #fee2e2;
}

.auth-switch {
    margin-top: 22px;
    text-align: center;
}

.auth-switch a {
    color: #0e5c72;
    font-weight: 800;
}

.passkey-placeholder {
    display: grid;
    gap: 4px;
    margin-top: 22px;
    padding: 15px 16px;
    border: 1px dashed #aebdc4;
    border-radius: 14px;
    color: #65727a;
}

.passkey-placeholder strong {
    color: #263238;
}

.dashboard-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top right, rgba(246,196,67,.24), transparent 24rem),
        linear-gradient(145deg, #083f51, #0e5c72);
}

.dashboard-card {
    width: min(840px, 100%);
    padding: clamp(28px, 6vw, 56px);
    border-radius: 24px;
    background: white;
    box-shadow: 0 18px 50px rgba(8,63,81,.18);
}

.dashboard-card h1 {
    font-size: clamp(2.2rem, 6vw, 4.6rem);
}

.user-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 28px 0;
}

.user-summary > div {
    display: grid;
    gap: 4px;
    padding: 16px;
    border-radius: 16px;
    background: #f3f7f9;
}

.user-summary span {
    color: #65727a;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

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

    .auth-panel--intro {
        min-height: auto;
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .form-grid,
    .account-types,
    .user-summary {
        grid-template-columns: 1fr;
    }

    .form-grid__full {
        grid-column: auto;
    }
}
