/* Shared login and signup presentation. */
body:has(.simple-auth-page) {
    background: radial-gradient(circle at 8% 16%, #ffe9d8 0, transparent 30%),
        radial-gradient(circle at 92% 82%, #fff1e7 0, transparent 32%), #f8f7f5;
}
body:has(.simple-auth-page) > .main-content {
    background: transparent;
    box-shadow: none;
    max-width: 1160px;
    padding: 2rem 1rem 3rem;
}
.simple-auth-page {
    --auth-orange: #c95819;
    --auth-ink: #252b36;
    color: var(--auth-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.simple-auth-page .auth-shell {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    background: #fff;
    border: 1px solid #eee5de;
    border-radius: 26px;
    box-shadow: 0 22px 65px rgba(80, 47, 27, .11);
    min-height: 660px;
    overflow: hidden;
}
.simple-auth-page .auth-brand-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 2.5rem 3rem;
    background: radial-gradient(circle at 95% 5%, rgba(255, 163, 103, .3), transparent 35%),
        linear-gradient(155deg, #47291e 0%, #33231e 55%, #241c1b 100%);
    color: #fff;
}
.simple-auth-page .auth-brand-panel::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -5rem;
    bottom: -8rem;
    width: 22rem;
    height: 22rem;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    box-shadow: 0 0 0 3.5rem rgba(255, 255, 255, .035), 0 0 0 7rem rgba(255, 255, 255, .025);
}
.simple-auth-page .auth-wordmark {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    align-self: flex-start;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.03em;
    text-decoration: none;
}
.simple-auth-page .auth-wordmark:hover { color: #ffe0c9; }
.simple-auth-page .auth-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #dc702f;
    font-size: 1.25rem;
}
.simple-auth-page .auth-brand-copy { margin: auto 0; padding: 3rem 0; }
.simple-auth-page .auth-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    color: #ffbb8a;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.simple-auth-page .auth-brand-copy h1 {
    max-width: 460px;
    margin: 0 0 1.2rem;
    color: #fff;
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.08;
}
.simple-auth-page .auth-brand-copy > p {
    max-width: 400px;
    margin: 0;
    color: #e0cfca;
    font-size: 1rem;
    line-height: 1.7;
}
.simple-auth-page .auth-feature-list { display: grid; gap: .75rem; margin-top: 2rem; }
.simple-auth-page .auth-feature-list div {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: #f3e8e3;
    font-size: .9rem;
}
.simple-auth-page .auth-feature-list span {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 174, 113, .18);
    color: #ffc08e;
    font-size: .8rem;
    font-weight: 800;
}
.simple-auth-page .auth-brand-footer { margin: 0; color: #bea9a2; font-size: .78rem; }
.simple-auth-page .auth-form-panel { display: flex; align-items: center; padding: 3.5rem clamp(2rem, 6vw, 5rem); }
.simple-auth-page .auth-form-wrap { width: 100%; max-width: 430px; margin: auto; }
.simple-auth-page .auth-form-heading { margin-bottom: 2rem; }
.simple-auth-page .auth-form-eyebrow {
    display: block;
    margin-bottom: .55rem;
    color: var(--auth-orange);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
}
.simple-auth-page .auth-form-heading h2 {
    margin: 0 0 .5rem;
    color: var(--auth-ink);
    font-size: clamp(1.85rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -.045em;
}
.simple-auth-page .auth-form-heading p { margin: 0; color: #6b7280; font-size: .94rem; }
.simple-auth-page .auth-required-note { margin: 0 0 1rem; color: #6b7280; font-size: .8rem; }
.simple-auth-page .auth-field { margin-bottom: 1.25rem; }
.simple-auth-page .auth-field .form-label {
    display: block;
    margin-bottom: .4rem;
    color: #394152;
    font-size: .84rem;
    font-weight: 700;
}
.simple-auth-page .required-marker { color: #b34222; }
.simple-auth-page .auth-optional { margin-left: .3rem; color: #858b96; font-size: .76rem; font-weight: 500; }
.simple-auth-page .auth-field .form-control {
    min-height: 48px;
    border: 1px solid #dce1e7 !important;
    border-radius: 11px !important;
    background: #fff;
    color: #252b36;
    font-size: .94rem;
    padding: .7rem .9rem !important;
}
.simple-auth-page .auth-field .form-control::placeholder { color: #959ca7; opacity: 1; }
.simple-auth-page .auth-field .form-control:focus {
    border-color: #cd713e !important;
    box-shadow: 0 0 0 .23rem rgba(201, 88, 25, .14) !important;
}
.simple-auth-page .auth-hint { display: block; margin-top: .3rem; color: #717986; font-size: .75rem; }
.simple-auth-page .auth-password-wrap { position: relative; }
.simple-auth-page .auth-password-wrap .form-control { padding-right: 4.3rem !important; }
.simple-auth-page .auth-password-toggle {
    position: absolute;
    top: 50%;
    right: .7rem;
    transform: translateY(-50%);
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #a34415;
    font-size: .78rem;
    font-weight: 750;
    padding: .4rem;
}
.simple-auth-page .auth-password-toggle:hover { background: #fff0e6; }
.simple-auth-page .auth-primary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 50px;
    margin-top: .4rem;
    border: 1px solid #c95819;
    border-radius: 11px;
    background: #c95819;
    color: #fff;
    font-size: .95rem;
    font-weight: 750;
    box-shadow: 0 8px 18px rgba(201, 88, 25, .16);
}
.simple-auth-page .auth-primary-btn:hover { border-color: #9c4010; background: #9c4010; color: #fff; }
.simple-auth-page :is(a, button, input):focus-visible { outline: 3px solid #3578bd; outline-offset: 3px; }
.simple-auth-page .auth-switch { margin: 1.5rem 0 .8rem; color: #697383; font-size: .86rem; text-align: center; }
.simple-auth-page :is(.auth-switch a, .auth-back-link) { color: #ad4712; font-weight: 700; text-decoration: none; }
.simple-auth-page :is(.auth-switch a, .auth-back-link):hover { text-decoration: underline; }
.simple-auth-page .auth-back-link { display: block; font-size: .8rem; text-align: center; }
.auth-signup-page .auth-form-panel { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.auth-signup-page .auth-form-heading { margin-bottom: 1.25rem; }
.auth-signup-page .auth-field { margin-bottom: 1rem; }

@media (max-width: 767.98px) {
    body:has(.simple-auth-page) > .main-content { padding: 1rem .75rem 2rem; }
    .simple-auth-page .auth-shell { grid-template-columns: 1fr; border-radius: 20px; }
    .simple-auth-page .auth-brand-panel { min-height: 0; padding: 1.5rem 2rem; }
    .simple-auth-page .auth-brand-copy { padding: 1.8rem 0 0; }
    .simple-auth-page .auth-brand-copy h1 { max-width: 580px; font-size: 2rem; }
    .simple-auth-page .auth-brand-copy > p { max-width: 580px; font-size: .9rem; }
    .simple-auth-page .auth-feature-list, .simple-auth-page .auth-brand-footer { display: none; }
    .simple-auth-page .auth-form-panel { padding: 2.25rem 2rem; }
}
@media (max-width: 480px) {
    .simple-auth-page .auth-brand-panel, .simple-auth-page .auth-form-panel { padding-left: 1.25rem; padding-right: 1.25rem; }
    .simple-auth-page .auth-brand-copy h1 { font-size: 1.8rem; }
}
