.account-page { min-height: 100vh; color: #f0f5ff; background: #07101d; }
.account-header { height: 84px; border-bottom: 1px solid rgba(190, 211, 241, .16); }
.account-header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.account-header .brand img { width: 160px; }
.account-back { color: rgba(232, 241, 255, .7); font-size: 14px; }
.account-back:hover { color: #fff; }
.account-main { min-height: calc(100vh - 84px); display: grid; place-items: center; padding: 70px 0; background: linear-gradient(125deg, rgba(7, 16, 29, .97), rgba(10, 28, 50, .82)), url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=1800&q=80') center/cover; }
.account-layout { width: min(1040px, calc(100% - 44px)); display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1px; border: 1px solid rgba(190, 211, 241, .18); background: rgba(190, 211, 241, .18); box-shadow: 0 28px 90px rgba(0, 0, 0, .34); }
.account-panel, .account-aside { padding: 46px; background: rgba(7, 16, 29, .94); }
.account-panel { min-height: 510px; }
.account-kicker { margin: 0 0 14px; color: #5de5ff; font-family: 'DM Mono', monospace; font-size: 12px; }
.account-panel h1 { margin: 0; font-size: 38px; letter-spacing: 0; }
.account-subtitle { margin: 13px 0 30px; color: rgba(226, 238, 255, .63); font-size: 15px; }
.account-switch { display: flex; gap: 26px; margin-bottom: 28px; border-bottom: 1px solid rgba(190, 211, 241, .16); }
.account-switch a { padding: 0 0 14px; color: rgba(226, 238, 255, .55); font-size: 15px; }
.account-switch a.active { border-bottom: 2px solid #5de5ff; color: #fff; }
.account-form { max-width: 500px; }
.account-form label { display: block; margin: 0 0 17px; }
.account-form label span { display: block; margin-bottom: 8px; color: rgba(226, 238, 255, .7); font-size: 13px; }
.account-form input { width: 100%; min-height: 48px; box-sizing: border-box; padding: 0 14px; border: 1px solid rgba(190, 211, 241, .22); outline: 0; background: rgba(4, 11, 21, .7); color: #fff; font: inherit; }
.account-form input:focus { border-color: #5de5ff; box-shadow: 0 0 0 3px rgba(93, 229, 255, .1); }
.account-submit { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: center; margin-top: 9px; border: 1px solid #438bff; background: #438bff; color: #fff; font-size: 15px; cursor: pointer; text-decoration: none; }
.account-submit:hover { background: #5aa0ff; }
.account-submit:disabled { cursor: wait; opacity: .65; }
.account-message { margin: 17px 0 0; font-size: 14px; line-height: 1.7; }
.account-protection-prompt { margin: 0 0 24px; padding: 12px 14px; border-left: 3px solid var(--blue); background: var(--panel-2); color: var(--ink); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width: 760px) { body:has(.account-page) .site-theme-switcher { position: static; display: flex; width: max-content; max-width: calc(100% - 36px); margin: 20px auto; } }
.account-message.error { color: #ff9b9b; }.account-message.success { color: #83f0c0; }
.account-admin-link { margin: 24px 0 0; color: rgba(226, 238, 255, .48); font-size: 13px; }.account-admin-link a { color: #5de5ff; }.account-admin-link a:hover { color: #fff; }
.account-aside { display: flex; flex-direction: column; justify-content: space-between; background: rgba(12, 30, 51, .9); }
.account-aside h2 { margin: 0; font-size: 22px; }.account-aside p { color: rgba(226, 238, 255, .65); font-size: 14px; line-height: 1.8; }
.account-points { margin: 30px 0 0; padding: 0; list-style: none; }.account-points li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; color: rgba(226, 238, 255, .78); font-size: 14px; line-height: 1.6; }.account-points li::before { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: #5de5ff; content: ''; }
.account-footnote { margin: 40px 0 0; color: rgba(226, 238, 255, .4); font-size: 12px; }
@media (max-width: 760px) { .account-layout { grid-template-columns: 1fr; }.account-panel, .account-aside { padding: 32px 26px; }.account-aside { display: none; }.account-panel { min-height: 0; } }

/* Light account theme. */
html[data-theme="light"] .account-page { color: #17263d; background: #f5f8fc; }
html[data-theme="light"] .account-header { border-color: rgba(34, 70, 111, .14); background: rgba(255, 255, 255, .94); }
html[data-theme="light"] .account-back { color: #5a6c83; }
html[data-theme="light"] .account-main { background: linear-gradient(125deg, rgba(247, 250, 254, .96), rgba(231, 240, 250, .88)), url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=1800&q=80') center/cover; }
html[data-theme="light"] .account-layout { border-color: rgba(34, 70, 111, .16); background: rgba(34, 70, 111, .16); box-shadow: 0 28px 90px rgba(43, 76, 115, .15); }
html[data-theme="light"] .account-panel, html[data-theme="light"] .account-aside { background: rgba(255, 255, 255, .94); }
html[data-theme="light"] .account-aside { background: #eef5fc; }
html[data-theme="light"] .account-panel h1, html[data-theme="light"] .account-aside h2 { color: #172b48; }
html[data-theme="light"] .account-subtitle, html[data-theme="light"] .account-form label span, html[data-theme="light"] .account-admin-link, html[data-theme="light"] .account-aside p, html[data-theme="light"] .account-points li { color: #5f7087; }
html[data-theme="light"] .account-switch { border-color: rgba(34, 70, 111, .14); }
html[data-theme="light"] .account-switch a { color: #718198; }
html[data-theme="light"] .account-switch a.active { color: #1d5db8; }
html[data-theme="light"] .account-form input { border-color: rgba(34, 70, 111, .2); background: #fff; color: #17263d; }

.sms-row { display: grid; grid-template-columns: minmax(0, 1fr) 148px; gap: 10px; }
.sms-button { min-height: 48px; padding: 0 14px; border: 1px solid #438bff; background: #438bff; color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.sms-button:hover { background: #5aa0ff; }
.sms-button:disabled { cursor: not-allowed; opacity: .58; }
.account-form .account-agreement { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 18px; }
.account-form .account-agreement input[type='checkbox'] { width: 18px; min-height: 18px; flex: 0 0 18px; margin: 2px 0 0; padding: 0; accent-color: #286ec7; }
.account-form .account-agreement span { margin: 0; font-size: 13px; line-height: 1.7; }
.account-agreement a { color: #1d5db8; text-decoration: underline; text-underline-offset: 2px; }
.account-agreement a:hover { color: #0e3d83; }

@media (max-width: 520px) {
  .sms-row { grid-template-columns: 1fr; }
  .sms-button { width: 100%; }
}
