.login-page .shell { width: min(1050px, calc(100% - 28px)); }
.login-page .topbar { margin-bottom: 16px; }
.login-page .account-nav { display: flex; align-items: center; gap: 16px; }
.login-page .account-nav a { color: #acd0cc; font-size: 12px; text-decoration: none; transition: color .2s, transform .2s; }
.login-page .account-nav a:hover { color: var(--cyan); transform: translateX(-2px); }
.login-hero { min-height: 210px; padding-right: min(340px, 32vw); animation: login-enter .65s ease both; }
.login-hero h1 { letter-spacing: .08em; }
.access-gate { position: absolute; right: 48px; top: 50%; display: grid; width: 180px; height: 180px; place-items: center; transform: translateY(-50%) rotate(45deg); border: 1px solid #286f6a; box-shadow: inset 0 0 0 16px #63ded305, inset 0 0 0 17px #286f6a; animation: gate-float 5s ease-in-out infinite; }
.access-gate::before { content: ""; position: absolute; inset: 30px; border: 1px dashed #286f6a; }
.access-gate span { position: absolute; width: 8px; height: 8px; background: var(--cyan); box-shadow: 0 0 13px var(--cyan); }
.access-gate span:nth-child(1) { top: -4px; left: 50%; }
.access-gate span:nth-child(2) { right: -4px; bottom: 50%; animation-delay: -1.1s; }
.access-gate span:nth-child(3) { left: -4px; bottom: 50%; animation-delay: -2.2s; }
.access-gate i { width: 54px; height: 54px; border: 1px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 24px #63ded33b; animation: gate-pulse 2.4s ease-in-out infinite; }
.login-grid { align-items: start; }
.login-panel { animation-delay: .08s; }
.login-aside { animation-delay: .16s; }
.mode-switch { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 0 24px; padding: 4px; border: 1px solid #24403e; border-radius: 6px; background: #050b0a; }
.mode-tab { position: relative; z-index: 1; min-height: 53px; border: 0; border-radius: 4px; color: #718a87; background: transparent; font: inherit; font-size: 13px; cursor: pointer; transition: color .2s, background .2s, transform .2s; }
.mode-tab span { display: block; margin-top: 5px; color: #526864; font-size: 9px; letter-spacing: .08em; }
.mode-tab.is-active { color: #c7faf4; background: #63ded318; transform: translateY(-1px); }
.mode-tab.is-active span { color: #75cfc4; }
.mode-slider { position: absolute; inset: 4px auto 4px 4px; width: calc(33.333% - 5px); border: 1px solid #286f6a; border-radius: 4px; pointer-events: none; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.mode-switch[data-mode="code"] .mode-slider { transform: translateX(100%); }
.mode-switch[data-mode="reset"] .mode-slider { transform: translateX(200%); }
.login-page .password-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.login-page .password-entry input { min-width: 0; }
.login-page .secret-control { min-height: 46px; }
.login-form[hidden], .login-success[hidden] { display: none; }
.login-form { animation: mode-enter .32s ease both; }
.login-page .forgot-password { margin-top: 16px; }
.login-page .reset-password-grid { margin-top: 2px; }
.login-page .login-success { animation: mode-enter .38s ease both; }
.login-page .success-signal { margin-top: 0; }
.login-page .identity-card { margin-bottom: 20px; }
.access-trace { display: flex; align-items: center; gap: 7px; margin: 4px 0 24px; color: #86a7a3; font-size: 10px; letter-spacing: .08em; }
.access-trace i { flex: 1; height: 1px; background: linear-gradient(90deg, #286f6a, transparent); }
.access-trace i:nth-of-type(2) { background: linear-gradient(90deg, #286f6a, transparent); }
.login-register-link { display: block; color: inherit; text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
.login-register-link:hover { border-color: var(--cyan); background: #63ded30d; transform: translateY(-2px); }
.login-register-link strong { display: block; margin-top: 7px; color: var(--cyan); font-size: 13px; }
@keyframes login-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mode-enter { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
@keyframes gate-float { 0%, 100% { transform: translateY(-50%) rotate(45deg); } 50% { transform: translateY(calc(-50% - 7px)) rotate(42deg); } }
@keyframes gate-pulse { 0%, 100% { opacity: .45; transform: scale(.84); } 50% { opacity: 1; transform: scale(1.08); } }
@media (max-width: 760px) { .login-hero { padding-right: 28px; } .access-gate { display: none; } }
@media (max-width: 520px) { .login-page .shell { width: calc(100% - 20px); } .login-page .account-nav a { display: none; } }
@media (prefers-reduced-motion: reduce) { .login-page *, .login-page *::before, .login-page *::after { animation: none !important; transition: none !important; } }
