.apt-auth {
    --color-accent: #4257e8;
    --color-accent-content: #4257e8;
    --color-accent-foreground: #fff;
    min-height: 100svh;
    margin: 0;
    background: #f1f4fb;
    color: #142044;
    -webkit-font-smoothing: antialiased;
}
.apt-auth-header {
    width: min(1120px, calc(100% - 64px));
    margin: 0 auto;
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.apt-auth-return {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 13px;
    font-weight: 500;
    color: #53617e;
    text-decoration: none;
}
.apt-auth-return:hover { color: #4257e8; }
.apt-auth-return:focus-visible { outline: 3px solid #4257e8; outline-offset: 4px; }
.apt-auth-main { padding: 32px 32px 64px; display: grid; place-items: center; min-height: calc(100svh - 104px); }
.apt-auth-surface {
    width: min(100%, 1000px);
    display: grid;
    grid-template-columns: .86fr 1fr;
    border: 1px solid #dfe5f3;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 48px #14204408;
    overflow: hidden;
}
.apt-auth-story {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px;
    gap: 80px;
    background: #4257e8;
    color: #fff;
    min-width: 0;
}
.apt-auth-caption { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.apt-auth-story h2 { font-size: clamp(32px, 3.2vw, 44px); line-height: 1.06; font-weight: 500; letter-spacing: -.065em; margin: 24px 0 20px; }
.apt-auth-story p { font-size: 15px; line-height: 1.65; color: #e0e5ff; max-width: 300px; margin: 0; }
.apt-auth-story-foot { border-top: 1px solid #ffffff40; padding-top: 20px; display: flex; align-items: center; gap: 12px; }
.apt-auth-story-foot svg { width: 38px; height: 38px; flex-shrink: 0; color: #fff; }
.apt-auth-story-foot p { font-size: 12px; line-height: 1.5; color: #fff; }
.apt-auth-content { padding: 48px 56px; min-width: 0; }
.apt-auth-content > div { width: 100%; max-width: 384px; margin: 0 auto; }
.apt-auth-content [data-flux-heading] { letter-spacing: -.04em; }
.apt-auth-footer { display: none; }
.dark .apt-auth { --color-accent: #9ba7ff; --color-accent-content: #9ba7ff; --color-accent-foreground: #142044; background: #0e162c; color: #f8faff; }
.dark .apt-auth-return { color: #b6c0d7; }
.dark .apt-auth-return:hover { color: #fff; }
.dark .apt-auth-surface { background: #16213a; border-color: #293752; box-shadow: none; }
.dark .apt-auth-story { background: #2d40c2; }
.dark .apt-auth-story p { color: #e0e5ff; }
.dark .apt-auth-story-foot p { color: #fff; }
@media (max-width: 850px) {
    .apt-auth-story { padding: 32px; }
    .apt-auth-story h2 { font-size: 34px; }
    .apt-auth-content { padding: 40px 32px; }
}
@media (max-width: 700px) {
    .apt-auth-header { width: calc(100% - 40px); min-height: 84px; }
    .apt-auth-return { font-size: 12px; }
    .apt-auth-main { min-height: calc(100svh - 84px); padding: 12px 20px 32px; align-items: start; }
    .apt-auth-surface { display: block; border-radius: 18px; }
    .apt-auth-story { display: none; }
    .apt-auth-content { padding: 32px 24px; }
    .apt-auth-footer { display: block; font-size: 12px; line-height: 1.5; text-align: center; color: #66728d; margin: 20px 0 0; }
    .dark .apt-auth-footer { color: #b6c0d7; }
}
@media (max-width: 360px) {
    .apt-auth-header { width: calc(100% - 32px); }
    .apt-auth-main { padding-inline: 12px; }
    .apt-auth-content { padding-inline: 20px; }
    .apt-auth-return { gap: 4px; }
    .apt-brand-wordmark { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .apt-auth * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
/* The passkey separator shares the form surface in both appearances. */
.apt-auth-content span.bg-white { background: #fff; }
.dark .apt-auth-content span.bg-white { background: #16213a; }
@media (max-width: 700px) {
    .apt-auth-content form > .relative > a {
        position: static;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        min-height: 44px;
        margin-top: 2px;
    }
}
