/* Milestone 11 authentication surfaces */
body:not(.authenticated-app) .page-shell { max-width: none; padding: 0; }
body:not(.authenticated-app) .topbar {
    position: absolute;
    z-index: 20;
    width: 100%;
    border: 0;
    background: transparent;
}
body:not(.authenticated-app) .brand { position: relative; z-index: 2; }

.m11-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(340px, .9fr) minmax(430px, 1.1fr);
    background: #fff;
}
.m11-auth-brand-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100vh;
    padding: 72px 54px 58px;
    background:
        radial-gradient(circle at 78% 18%, rgba(43,156,141,.28), transparent 28%),
        linear-gradient(145deg, #0e313d 0%, #173f4d 52%, #134097 120%);
    color: #fff;
}
.m11-auth-brand-panel::before,
.m11-auth-brand-panel::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
}
.m11-auth-brand-panel::before { width: 390px; height: 390px; right: -140px; top: -100px; }
.m11-auth-brand-panel::after { width: 260px; height: 260px; right: 80px; top: 60px; }
.m11-auth-brand-mark {
    position: relative;
    z-index: 2;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 28px;
    border-radius: 14px;
    background: var(--dq-green);
    box-shadow: 0 12px 28px rgba(0,0,0,.14);
    font-size: 19px;
    font-weight: 900;
}
.m11-auth-brand-panel h2 {
    position: relative;
    z-index: 2;
    max-width: 480px;
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: -.04em;
}
.m11-auth-brand-panel p {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin: 16px 0 0;
    color: #c7d8dd;
    font-size: 13px;
    line-height: 1.7;
}
.m11-auth-points {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 30px;
}
.m11-auth-points span {
    padding: 10px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 7px;
    background: rgba(255,255,255,.04);
    color: #dfebee;
    font-size: 10px;
}

.m11-auth-form-panel {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 76px 48px 42px;
    background: #fbfbfc;
}
.m11-auth-card {
    width: min(430px, 100%);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.m11-auth-card .eyebrow { margin-bottom: 8px; }
.m11-auth-card h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -.035em;
}
.m11-auth-card > .muted { margin-top: 8px; font-size: 12px; }
.m11-auth-card .stacked-form { gap: 6px; margin-top: 28px; }
.m11-auth-card .stacked-form label { margin-top: 8px; font-size: 10px; }
.m11-auth-card .stacked-form input {
    min-height: 42px;
    padding: 9px 11px;
    border-color: #cfd5da;
    background: #fff;
    font-size: 13px;
}
.m11-auth-card .primary-button {
    width: 100%;
    min-height: 42px;
    margin-top: 12px;
    background: var(--dq-green-dark);
    border-color: var(--dq-green-dark);
}
.m11-auth-help {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--dq-line);
    color: var(--dq-muted);
    font-size: 10px;
}
.m11-auth-help a { color: var(--dq-blue); font-weight: 750; text-decoration: none; }
.m11-auth-confirmation {
    padding: 14px;
    border: 1px solid #cfe5df;
    border-radius: 7px;
    background: #f1faf7;
    color: #3f615a;
    font-size: 11px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .m11-auth-shell { grid-template-columns: 1fr; }
    .m11-auth-brand-panel { min-height: 300px; padding: 84px 28px 34px; }
    .m11-auth-form-panel { min-height: auto; padding: 40px 24px 56px; }
    .m11-auth-points { grid-template-columns: 1fr; }
}
