:root {
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --accent: #007aff;
  --accent-text: #005ec4;
  --line: #e5e5ea;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(ellipse at 7% 23%, #e7efff 0, transparent 53%), radial-gradient(ellipse at 96% 94%, #e8f2ff 0, transparent 48%), #f5f5f7;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
svg { display: block; flex-shrink: 0; }
[hidden] { display: none !important; }
button:focus-visible, input:focus-visible { outline: 3px solid #007aff66; outline-offset: 4px; }
.page-shell { max-width: 1260px; min-height: 100vh; min-height: 100svh; padding: 38px 64px 26px; margin: auto; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 13px; background: var(--accent); color: #fff; font-size: 30px; font-weight: 600; letter-spacing: -1.5px; box-shadow: inset 0 1px 0 #ffffff33, 0 4px 12px #007aff18; }
.brand-copy { display: flex; flex-direction: column; gap: 4px; }
.brand-name { font-size: 20px; letter-spacing: -.6px; font-weight: 650; }
.version { vertical-align: 2px; margin-left: 3px; padding: 3px 6px; border-radius: 5px; background: #e6efff; color: var(--accent-text); font-size: 10px; font-weight: 600; letter-spacing: 0; }
.cabinet-name { color: var(--muted); font-size: 11px; letter-spacing: .1px; }
.login-layout { flex: 1; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); align-items: center; gap: 90px; padding: 58px 0 56px; }
.welcome-panel { padding: 0 0 0 1px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 550; color: var(--accent-text); letter-spacing: .3px; }
.eyebrow>span { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
h1 { margin: 22px 0 18px; font-size: clamp(40px, 4.7vw, 58px); line-height: 1.12; font-weight: 650; letter-spacing: -2.5px; }
h1>em { color: var(--accent-text); font-style: italic; font-weight: 600; }
.welcome-copy { margin: 0; max-width: 365px; color: #5a5a61; font-size: 15px; line-height: 1.75; letter-spacing: -.15px; }
.workspace-preview { max-width: 432px; margin-top: 37px; background: #ffffffc9; border: 1px solid #fff; border-radius: 16px; box-shadow: 0 12px 35px #154d9210, 0 1px 3px #1d1d1f04; transform: rotate(-1.5deg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.preview-top { display: flex; align-items: center; gap: 9px; padding: 13px 17px; border-bottom: 1px solid #e8edf5; font-size: 10px; font-weight: 550; color: #5a6473; }
.preview-logo { color: var(--accent-text); width: 20px; height: 20px; border: 1px solid #d9e9ff; border-radius: 6px; background: #eaf3ff; display: grid; place-items: center; font-size: 13px; font-weight: 650; }
.preview-dots { margin-left: auto; color: #a0a5b0; letter-spacing: 2px; }
.preview-body { padding: 20px 22px 13px; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.preview-heading>div { display: flex; flex-direction: column; gap: 6px; }
.preview-caption { font-size: 8px; letter-spacing: 1.3px; color: #727985; }
.preview-heading strong { font-size: 18px; letter-spacing: -.6px; font-weight: 600; }
.preview-add { width: 25px; height: 25px; background: #eaf3ff; color: var(--accent-text); border-radius: 7px; display: grid; place-items: center; font-size: 18px; }
.preview-tabs { display: flex; gap: 19px; margin: 19px 0 4px; border-bottom: 1px solid #e5ebf4; color: #7b818c; font-size: 9px; }
.preview-tabs>span { padding-bottom: 9px; }
.preview-tabs>.selected { color: var(--accent-text); border-bottom: 2px solid var(--accent); font-weight: 550; }
.preview-row { display: flex; align-items: center; gap: 11px; padding: 15px 0; border-bottom: 1px solid #edf0f5; }
.preview-icon { width: 32px; height: 35px; background: #eaf3ff; color: var(--accent-text); border-radius: 8px; display: grid; place-items: center; }
.preview-icon svg { width: 18px; height: 18px; }
.preview-row>div { display: flex; flex-direction: column; gap: 5px; }
.preview-row strong { font-size: 10px; font-weight: 550; letter-spacing: -.1px; }
.preview-row div>span { font-size: 9px; color: #7b818c; }
.preview-check { width: 12px; height: 12px; border: 1px solid #ccd6e5; border-radius: 4px; margin-left: auto; }
.preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 13px; color: #7b818c; font-size: 8px; }
.preview-footer>span:first-child { display: flex; align-items: center; gap: 5px; }
.preview-footer i { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
.practice-poles { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 28px 0 0 2px; color: #697282; font-size: 11px; }
.practice-poles i { width: 3px; height: 3px; background: #a6b7cd; border-radius: 50%; }
.login-card { align-self: center; max-width: 432px; width: 100%; padding: 37px 36px 28px; border: 1px solid #ffffffd9; background: #ffffffd9; border-radius: 24px; box-shadow: 0 20px 70px #1741780c, 0 2px 5px #1d1d1f04; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.login-symbol { display: grid; place-items: center; width: 45px; height: 45px; background: #eaf3ff; border: 1px solid #dceaff; border-radius: 13px; color: var(--accent-text); }
.login-symbol svg { width: 24px; height: 24px; }
.form-eyebrow { margin-top: 28px; color: var(--muted); letter-spacing: .1px; font-size: 11px; }
h2 { margin: 9px 0 12px; font-size: 31px; line-height: 1.16; font-weight: 650; letter-spacing: -1.1px; }
.login-description { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
form { margin-top: 29px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: 11px; color: #48484a; font-weight: 550; }
.input-wrap { position: relative; display: flex; align-items: center; border: 1px solid #d8d8df; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px #1d1d1f03; transition: border-color .15s, box-shadow .15s; }
.input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #007aff14; }
.input-wrap>svg { position: absolute; left: 14px; width: 16px; height: 16px; pointer-events: none; color: #8b8b94; }
.input-wrap input { width: 100%; min-width: 0; padding: 14px 14px 14px 41px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font-size: 13px; line-height: 1.4; outline: none; }
.input-wrap input[type="password"], .input-wrap input#password { padding-right: 46px; }
.input-wrap input::placeholder { color: #898991; }
.input-wrap input:focus-visible { outline: none; }
.input-wrap input:-webkit-autofill { -webkit-text-fill-color: var(--ink); -webkit-box-shadow: 0 0 0 60px #fff inset; border-radius: 10px; }
.password-toggle { display: grid; place-items: center; position: absolute; right: 6px; width: 35px; height: 35px; padding: 9px; color: #73737c; border: 0; background: transparent; border-radius: 7px; }
.password-toggle:hover { background: #eef4ff; color: var(--accent-text); }
.password-toggle svg { width: 18px; height: 18px; }
.eye-closed, .password-toggle.is-visible .eye-open { display: none; }
.password-toggle.is-visible .eye-closed { display: block; }
.form-error { margin: 0 0 16px; padding: 11px 12px; display: flex; align-items: flex-start; gap: 8px; border: 1px solid #f1d5ce; border-radius: 9px; background: #fff1ee; color: #b42318; font-size: 11px; line-height: 1.65; }
.form-error svg { width: 15px; height: 15px; margin-top: 1px; }
.submit-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 46px; margin-top: 25px; padding: 13px 18px; border: 1px solid #0064cc; border-radius: 10px; background: #006edb; color: #fff; box-shadow: inset 0 1px 0 #ffffff12, 0 2px 4px #006edb18; font-size: 12px; font-weight: 550; transition: background .15s, transform .15s; }
.submit-button:hover { background: #0062cc; }
.submit-button:active { transform: translateY(1px); }
.submit-button:disabled { background: #0062cc; }
.button-arrow { width: 16px; height: 16px; }
.button-spinner { display: none; width: 15px; height: 15px; border: 2px solid #ffffff55; border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
form[aria-busy="true"] .button-spinner { display: block; }
form[aria-busy="true"] .button-arrow { display: none; }
.card-footer { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 29px; color: #72727a; font-size: 9px; }
.footer-line { height: 1px; flex: 1; background: #e8e8ed; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 6px; color: #777781; font-size: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1440px) { .login-layout { padding-top: 75px; padding-bottom: 80px; } }
@media (max-width: 1050px) { .page-shell { padding: 32px 36px 24px; } .login-layout { gap: 46px; } .login-card { padding: 32px 28px 25px; } h1 { font-size: 46px; letter-spacing: -2px; } h2 { font-size: 28px; } }
@media (max-width: 780px) {
  .page-shell { padding: 28px 28px 22px; max-width: 570px; }
  .login-layout { grid-template-columns: 1fr; gap: 28px; padding: 35px 0; }
  .welcome-panel { padding: 0; }
  .welcome-panel .eyebrow, .welcome-copy, .workspace-preview, .practice-poles { display: none; }
  h1 { font-size: 34px; letter-spacing: -1.3px; margin: 0; line-height: 1.2; }
  .login-card { max-width: none; padding: 29px 30px 25px; }
  .login-symbol { width: 40px; height: 40px; border-radius: 12px; }
  .form-eyebrow { margin-top: 22px; }
  .page-footer { align-items: flex-start; font-size: 9px; }
}
@media (max-width: 420px) {
  .page-shell { padding: 24px 20px 20px; }
  .brand-mark { width: 40px; height: 40px; font-size: 27px; border-radius: 12px; }
  .brand-name { font-size: 18px; }
  .cabinet-name { font-size: 10px; }
  .login-layout { padding: 28px 0; gap: 25px; }
  h1 { font-size: 30px; }
  .login-card { padding: 26px 23px 24px; border-radius: 20px; }
  h2 { font-size: 27px; }
  .input-wrap input { font-size: 16px; padding-top: 13px; padding-bottom: 13px; }
  .page-footer>span:last-child { max-width: 170px; text-align: right; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
