/* Authentication-only light theme. Console styling and permissions are unchanged. */
#auth {
  --auth-ink: #27344b;
  --auth-muted: #65738a;
  --auth-violet: #5746bd;
  color: var(--auth-ink);
  min-height: 100vh;
  min-height: 100svh;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 76px);
  padding: 48px max(40px, calc((100vw - 1040px) / 2));
  background: radial-gradient(ellipse at 8% 18%, #edf7ff 0, transparent 46%),
    radial-gradient(ellipse at 96% 92%, #f0edff 0, transparent 45%), #fafbfe;
}
#auth .auth-intro {
  background: none;
  border: 0;
  padding: 24px 0;
  gap: 40px;
  position: relative;
}
#auth .brand-symbol, #auth .brand-wordmark { background: transparent; }
#auth .auth-intro .brand-symbol { width: 50px; }
#auth .auth-intro .brand-wordmark { width: 82px; }
#auth .auth-intro .brand { gap: 10px; }
#auth .auth-eyebrow { font-size: 12px; letter-spacing: .13em; color: #726a9d; }
#auth .auth-intro h1 {
  font-size: clamp(30px, 3.3vw, 44px);
  line-height: 1.45;
  letter-spacing: -.045em;
  font-weight: 650;
  margin: 16px 0 20px;
}
#auth .auth-intro h1 span { color: #7770c7; }
#auth .intro-copy { max-width: 300px; font-size: 14px; line-height: 1.9; color: var(--auth-muted); }
#auth .auth-signature { font-size: 12px; color: #768399; letter-spacing: .04em; }
#auth .auth-main { padding: 0; background: none; min-width: 0; }
#auth .auth-card {
  max-width: 444px;
  padding: 36px 36px 28px;
  border: 1px solid #e6e9f2;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 16px 56px #40477508, 0 2px 6px #40477503;
}
#auth .auth-compact-brand { display: none; }
#auth .segmented {
  background: #f5f6fa;
  border: 1px solid #eef0f6;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 28px;
}
#auth .segmented button { border-radius: 9px; min-height: 38px; font-size: 13px; color: #6c778b; }
#auth .segmented .selected { color: var(--auth-violet); background: #fff; box-shadow: 0 2px 7px #30395c0a; font-weight: 600; }
#auth .auth-card h2 { font-size: 26px; letter-spacing: -.035em; margin-bottom: 8px; font-weight: 650; }
#auth #authHint { font-size: 13px; line-height: 1.8; color: var(--auth-muted); }
#auth .auth-card form { margin-top: 28px; }
#auth label { font-size: 13px; color: #46536a; margin-bottom: 18px; }
#auth input:not([type=checkbox]) {
  min-height: 48px;
  border: 1px solid #e0e6ef;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fcfdff;
  color: var(--auth-ink);
  font-size: 14px;
  margin-top: 8px;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
#auth input::placeholder { color: #7d879a; font-size: 13px; }
#auth input:not([type=checkbox]):hover { border-color: #c3cce0; }
#auth input:not([type=checkbox]):focus { background: #fff; border-color: #a398dc; outline: 0; box-shadow: 0 0 0 3px #efedfc; }
#auth #authSubmit {
  min-height: 48px;
  justify-content: center;
  border-radius: 11px;
  background: #eeeafd;
  border: 1px solid #e8e2fc;
  color: #5141b1;
  font-size: 14px;
  font-weight: 650;
  box-shadow: 0 3px 8px #7569bc06;
}
#auth #authSubmit:not(:disabled):hover { background: #e4ddfc; border-color: #d8cef7; }
#auth #authSubmit:not(:disabled):active { background: #dbd1fa; }
#auth .auth-links { margin-top: 15px; font-size: 12px; min-height: 30px; align-items: center; }
#auth .auth-links .text-button { font-size: 12px; color: var(--auth-muted); }
#auth .auth-links a:hover, #auth .auth-links button:hover { color: var(--auth-violet); }
#auth .fine-print { margin-top: 22px; padding-top: 20px; border-top: 1px solid #f0f2f7; font-size: 11px; line-height: 1.8; color: #738097; text-align: center; }
#auth .email-code-row { margin-bottom: 18px; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
#auth .email-code-row label { margin-bottom: 0; }
#auth #sendEmailCode { min-height: 48px; background: #f3f1fd; color: var(--auth-violet); border: 1px solid #e4dff6; border-radius: 10px; font-size: 12px; padding: 10px 12px; }
#auth #sendEmailCode:disabled { cursor: default; }
#auth .error-text { padding: 10px 12px; border-radius: 8px; background: #fff3f5; font-size: 12px; }
#auth button:focus-visible, #auth a:focus-visible { outline: 2px solid #8172cc; outline-offset: 3px; }
/* Light, decorative canvas outlines, never interactive or used as instructions. */
#auth .auth-canvas-mark { position: relative; width: 224px; height: 115px; margin-top: 34px; }
#auth .auth-canvas-mark::before, #auth .auth-canvas-mark::after {
  content: ''; position: absolute; width: 142px; height: 88px; border-radius: 14px; border: 1px solid #dbe4f4;
  background: linear-gradient(140deg, #ffffffc9, #eaf1fb99); transform: rotate(-7deg); left: 6px; top: 8px;
}
#auth .auth-canvas-mark::after { left: 58px; top: 23px; transform: rotate(7deg); background: linear-gradient(140deg,#ffffffdd,#eeebfbcc); border-color: #e0ddf1; }
#auth .auth-canvas-mark svg { position: absolute; left: 117px; top: 57px; z-index: 1; color: #a49cd0; }
@media (max-width: 860px) {
  #auth { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; padding: 32px 20px; align-content: center; }
  #auth .auth-intro { display: none; }
  #auth .auth-main { padding: 0; min-height: 0; }
  #auth .auth-card { padding: 30px 30px 24px; max-width: 436px; }
  #auth .auth-compact-brand { display: inline-flex; margin-bottom: 26px; }
  #auth .auth-compact-brand .brand-symbol { width: 36px; }
  #auth .auth-compact-brand .brand-wordmark { width: 60px; }
}
@media (max-width: 420px) {
  #auth { padding: 18px 12px; }
  #auth .auth-card { padding: 26px 22px 22px; border-radius: 20px; }
  #auth .auth-card h2 { font-size: 24px; }
  #auth .fine-print { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { #auth input, #auth button { transition: none; } }
