.auth-screen.account-screen {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    overflow: auto;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(ellipse at 10% 0%, rgba(var(--accent-blue-rgb), .10), transparent 38%),
        var(--bg-base);
}
.account-shell {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    width: min(100%, 1020px);
    min-height: min(620px, calc(100vh - 48px));
    margin: auto;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    animation: account-enter .42s cubic-bezier(.2,.75,.3,1) both;
}
.account-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(20px, 3vh, 36px);
    gap: 40px;
    overflow: hidden;
    padding: clamp(32px, 5vw, 58px);
    background:
        radial-gradient(ellipse at 50% 28%, rgba(23, 223, 239, .2), transparent 36%),
        linear-gradient(145deg, #092e49 0%, #075b72 58%, #087f88 100%);
    color: #f2fdff;
    animation: account-panel-enter .55s cubic-bezier(.2,.75,.3,1) both;
}
.account-brand-panel::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background-image:
        linear-gradient(rgba(177, 244, 255, .065) 1px, transparent 1px),
        linear-gradient(90deg, rgba(177, 244, 255, .065) 1px, transparent 1px),
        radial-gradient(circle at 50% 30%, transparent 0 31%, rgba(125, 236, 248, .1) 31.2%, transparent 31.6%);
    background-size: 34px 34px, 34px 34px, 100% 100%;
    content: "";
    opacity: .65;
    pointer-events: none;
}
.account-brand-panel::after {
    position: absolute;
    z-index: 0;
    right: -115px;
    bottom: -165px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(255,255,255,.035), 0 0 0 70px rgba(255,255,255,.025);
    content: "";
    pointer-events: none;
}
.account-data-streams {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: flex;
    justify-content: space-around;
    overflow: hidden;
    color: rgba(230, 252, 255, .26);
    font: 600 11px/1.8 ui-monospace, Consolas, monospace;
    letter-spacing: .16em;
    pointer-events: none;
    user-select: none;
}
.account-data-streams span {
    flex: 0 0 auto;
    white-space: pre;
    opacity: .48;
    text-shadow: 0 0 12px rgba(160, 241, 250, .2);
    animation: account-code-flow 22s linear infinite;
}
.account-data-streams span:nth-child(2) { animation-delay: -6s; opacity: .32; }
.account-data-streams span:nth-child(3) { animation-delay: -12s; opacity: .4; }
.account-data-streams span:nth-child(4) { animation-delay: -17s; opacity: .28; }
@keyframes account-code-flow {
    from { transform: translateY(18%); }
    to { transform: translateY(-58%); }
}
.account-brand {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0;
}
.account-brand .auth-logo:not(.futuristic-logo) {
    position: relative;
    display: flex;
    width: 164px;
    height: 164px;
    flex: 0 0 164px;
    align-items: center;
    justify-content: center;
    margin: 0;
    isolation: isolate;
}
.account-brand .auth-logo::before {
    position: absolute;
    inset: -22px -30px;
    border: 1px solid rgba(188, 249, 255, .72);
    border-radius: 50%;
    background: radial-gradient(circle at 12% 50%, #c8fbff 0 3px, transparent 4px);
    box-shadow: 0 0 16px rgba(95, 231, 245, .28);
    content: "";
    opacity: .7;
    animation: account-logo-orbit 20s linear infinite;
}
.account-brand .auth-logo::after {
    position: absolute;
    inset: -34px -8px;
    border: 1px dashed rgba(188, 249, 255, .52);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 0%, #f1ffff 0 3px, transparent 4px);
    box-shadow: 0 0 26px rgba(78, 223, 242, .14);
    content: "";
    opacity: .65;
    animation: account-logo-orbit-reverse 28s linear infinite;
}
.account-brand .auth-logo:not(.futuristic-logo) svg,
.account-brand .auth-logo:not(.futuristic-logo) img {
    position: relative;
    z-index: 1;
    width: 148px;
    height: 148px;
    color: #f2fdff;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(165, 246, 255, .34));
    animation: account-shield-ready 3.6s ease-in-out infinite;
}
.auth-screen.account-screen:not(.futuristic-auth) .account-brand .auth-logo {
    width: 240px;
    height: 240px;
    flex-basis: 240px;
}
.auth-screen.account-screen:not(.futuristic-auth) .account-brand .auth-logo svg,
.auth-screen.account-screen:not(.futuristic-auth) .account-brand .auth-logo img {
    width: 228px;
    height: 228px;
}
@keyframes account-shield-ready {
    0%, 100% { filter: drop-shadow(0 0 9px rgba(165, 246, 255, .3)); }
    50% { filter: drop-shadow(0 0 14px rgba(205, 251, 255, .72)) drop-shadow(0 0 26px rgba(78, 223, 242, .34)); }
}
.account-brand-name { margin: 0; color: #f2fdff; font-size: 20px; font-weight: 750; text-align: center; }
.account-brand-description { margin: 4px 0 0; color: #e2faff; font-size: 12px; line-height: 1.45; opacity: .92; }
.account-intro { position: relative; z-index: 1; max-width: 380px; margin: 0 auto; text-align: center; }
.account-eyebrow { display: block; margin-bottom: 11px; color: var(--accent-blue); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.account-brand-panel .account-eyebrow { color: #d5fbff; opacity: .94; }
.account-intro h2 { margin: 0 0 13px; color: #fff; font-size: clamp(28px, 3vw, 38px); font-weight: 700; letter-spacing: -.035em; line-height: 1.14; }
.account-intro p { max-width: 350px; margin: 0 auto; color: #e4f9fc; font-size: 15px; line-height: 1.7; opacity: .96; }
.account-brand-footer { position: relative; z-index: 1; max-width: 360px; margin: 0; color: #e4f9fc; font-size: 12px; line-height: 1.55; opacity: .92; }
.account-form-panel { display: flex; align-items: center; justify-content: center; padding: clamp(30px, 5vw, 64px); }
.account-form-content { width: 100%; max-width: 430px; animation: account-content-enter .5s .08s cubic-bezier(.2,.75,.3,1) both; }
.account-form-heading { margin-bottom: 24px; }
.account-form-heading .account-eyebrow { margin-bottom: 8px; }
.account-form-heading h1 { margin: 0 0 7px; color: var(--text-primary); font-size: 30px; font-weight: 750; letter-spacing: -.035em; line-height: 1.2; }
.account-form-heading p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
.account-message { margin: 0 0 18px; padding: 11px 13px; border: 1px solid var(--accent-red); border-radius: 9px; background: rgba(var(--accent-red-rgb),.10); color: var(--text-primary); font-size: 13px; line-height: 1.55; }
.account-message.success { border-color: var(--accent-green); background: rgba(var(--accent-green-rgb),.10); color: var(--text-primary); }
.account-form .dfield { margin: 0 0 17px; }
.account-form .dfield > label { display: block; margin-bottom: 7px; color: var(--text-secondary); font-size: 13px; font-weight: 650; }
.account-form .dinput,
.account-form .dtextarea {
    box-sizing: border-box;
    min-height: 46px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    background: var(--surface-2);
    color: var(--text-primary);
    font-size: 15px;
}
.account-form .dtextarea { min-height: 96px; resize: vertical; }
.account-form .dinput::placeholder,
.account-form .dtextarea::placeholder { color: var(--text-muted); opacity: 1; }
.account-form .dinput:focus,
.account-form .dtextarea:focus {
    border-color: var(--accent-blue);
    outline: 3px solid rgba(var(--accent-blue-rgb),.18);
    outline-offset: 0;
    background: var(--surface);
}
.account-form .password-input-wrap .dinput { padding-right: 44px; }
.account-form .password-visibility-toggle { color: var(--text-secondary); }
.account-code-input { text-align: left; letter-spacing: .1em; }
.account-submit {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--accent-blue);
    border-radius: 9px;
    background: var(--accent-blue);
    color: var(--btn-primary-fg);
    font-size: 14px;
    font-weight: 700;
    transition: background .16s ease, transform .16s ease;
}
.account-submit:hover { border-color: var(--accent-hover); background: var(--accent-hover); color: var(--btn-primary-fg); transform: translateY(-1px); }
.account-submit:focus-visible { outline: 3px solid rgba(var(--accent-blue-rgb),.3); outline-offset: 2px; }
.account-links { margin: 20px 0 0; color: var(--text-secondary); font-size: 13px; line-height: 1.55; text-align: center; }
.account-links + .account-links { margin-top: 9px; }
.account-links a { color: var(--accent-blue); font-weight: 650; text-decoration: none; }
.account-links a:hover { color: var(--accent-hover); text-decoration: underline; }
.account-form .text-muted-d { color: var(--text-secondary); }
.account-cancel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 9px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.account-cancel:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
@keyframes account-enter {
    from { opacity: 0; transform: translateY(12px) scale(.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes account-panel-enter {
    from { opacity: .7; }
    to { opacity: 1; }
}
@keyframes account-content-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes account-logo-orbit { to { transform: rotate(360deg); } }
@keyframes account-logo-orbit-reverse { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) {
    .account-shell, .account-brand-panel, .account-form-content,
    .account-brand .auth-logo::before, .account-brand .auth-logo::after,
    .account-data-streams span, .account-brand .auth-logo svg, .account-brand .auth-logo img { animation: none; }
    .account-submit { transition: none; }
}
@media (min-width: 761px) and (max-width: 900px) {
    .auth-screen.account-screen:not(.futuristic-auth) .account-brand .auth-logo { width: 220px; height: 220px; flex-basis: 220px; }
    .auth-screen.account-screen:not(.futuristic-auth) .account-brand .auth-logo svg,
    .auth-screen.account-screen:not(.futuristic-auth) .account-brand .auth-logo img { width: 208px; height: 208px; }
}
@media (min-width: 761px) {
    .account-brand-panel:not(.access-brand-panel) .account-intro { transform: translateY(-32px); }
}
@media (max-width: 760px) {
    .auth-screen.account-screen { align-items: flex-start; padding: 14px; }
    .account-shell { grid-template-columns: minmax(0, 1fr); min-height: 0; margin: auto; border-radius: 16px; }
    .account-brand-panel { min-height: 340px; justify-content: center; gap: 22px; padding: 26px 26px 30px; }
    .account-brand { margin: 0; gap: 8px; }
    .account-brand .auth-logo:not(.futuristic-logo) { width: 150px; height: 150px; flex-basis: 150px; }
    .account-brand .auth-logo:not(.futuristic-logo) svg,
    .account-brand .auth-logo:not(.futuristic-logo) img { width: 136px; height: 136px; }
    .auth-screen.account-screen:not(.futuristic-auth) .account-brand .auth-logo { width: 150px; height: 150px; flex-basis: 150px; }
    .auth-screen.account-screen:not(.futuristic-auth) .account-brand .auth-logo svg,
    .auth-screen.account-screen:not(.futuristic-auth) .account-brand .auth-logo img { width: 136px; height: 136px; }
    .account-brand-name { font-size: 18px; }
    .account-intro { max-width: 430px; text-align: center; }
    .account-intro h2 { margin-bottom: 7px; font-size: 24px; }
    .account-intro p { font-size: 14px; line-height: 1.5; }
    .account-brand-footer { display: none; }
    .account-form-panel { padding: 28px 28px 34px; }
}
@media (max-width: 420px) {
    .auth-screen.account-screen { padding: 8px; }
    .account-brand-panel { min-height: 320px; padding: 22px 18px 26px; }
    .account-brand .auth-logo:not(.futuristic-logo) { width: 136px; height: 136px; flex-basis: 136px; }
    .account-brand .auth-logo:not(.futuristic-logo) svg,
    .account-brand .auth-logo:not(.futuristic-logo) img { width: 124px; height: 124px; }
    .auth-screen.account-screen:not(.futuristic-auth) .account-brand .auth-logo { width: 136px; height: 136px; flex-basis: 136px; }
    .auth-screen.account-screen:not(.futuristic-auth) .account-brand .auth-logo svg,
    .auth-screen.account-screen:not(.futuristic-auth) .account-brand .auth-logo img { width: 124px; height: 124px; }
    .account-form-panel { padding: 24px 22px 28px; }
    .account-form-heading h1 { font-size: 27px; }
}
