/* The sign-in pages, in the website's look (owner, 2026-10-29): the website's dark navy band as the brand side, with the mark, the way back
   to the website and, on wide screens, one line about Symphony Office over a soft blue light; the form on a light panel beside it, no card.
   On a phone the dark side is a short band along the top. The dark side reads the dark tokens (data-force-dark, tokens.css), the rest the
   light ones. */
body { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; background: var(--card); }

.login-side { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; background: var(--background); color: var(--foreground); border-bottom: 1px solid var(--border); }
.login-side::before { /* the website hero's blue light behind the heading */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 90% at 30% 0%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 70%);
}
.login-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) clamp(16px, 4vw, 48px); }
.login-home { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--foreground); text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; }
.login-mark { display: block; width: 28px; height: 28px; flex: none; }
/* the website's quiet outline button */
.login-back { display: inline-flex; white-space: nowrap; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4); border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--foreground); font-weight: 600; font-size: 0.9375rem; text-decoration: none; transition: background-color 160ms var(--ease); }
@media (hover: hover) { .login-back:hover { background: var(--muted); } }
.login-pitch { display: none; }

.login { display: grid; align-content: center; justify-items: center; gap: var(--space-7); padding: var(--space-6) 20px var(--space-5); }
.login-card { width: min(400px, 100%); animation: login-in 0.5s var(--ease) both; }
/* which sign-in this is: the product name in words, sentence case and the UI font (DESIGN.md, design review 2026-10-28) */
.login-where { display: flex; align-items: center; gap: var(--space-2); margin: 0; font: 600 0.9375rem / 1.2 var(--font-ui); color: var(--accent-ink); }
.login-beta { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--accent-line); background: var(--accent-tint); color: var(--accent-ink); font-size: 12px; }
.login-card h1 { margin: var(--space-3) 0 var(--space-6); font-size: clamp(2rem, 2vw + 1.2rem, 2.75rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; color: var(--foreground); }
.login form { display: grid; gap: var(--space-4); }
[hidden] { display: none !important; } /* the rule above showed a hidden form: a dead finish-signup link kept its form (review P2) */
.login-field label { display: block; margin-bottom: var(--space-2); font-weight: 600; font-size: 0.9375rem; color: var(--foreground); }
.login-field input, .login-field select {
  width: 100%; min-height: 50px; padding: 0 var(--space-4); border: 1.5px solid var(--border-strong); border-radius: var(--radius);
  background: var(--card); color: var(--foreground); font-size: 16px;
}
.login-field input:focus-visible, .login-field select:focus-visible { outline: 3px solid var(--ring); outline-offset: 1px; border-color: var(--ring); }
.login-pw { position: relative; }
.login-pw input { padding-right: 52px; }
.login-pw button {
  position: absolute; top: 0; right: 0; width: 50px; height: 50px; display: grid; place-items: center;
  border: 0; background: none; color: var(--muted-foreground); cursor: pointer; border-radius: var(--radius);
}
.login-pw button:hover { color: var(--foreground); }
.login-forgot { justify-self: end; min-height: 44px; margin-block: calc(-1 * var(--space-3)); border: 0; background: none; padding: 0; font-size: 14px; color: var(--muted-foreground); cursor: pointer; }
a.login-forgot { display: inline-flex; align-items: center; text-decoration: none; }
.login-forgot:hover { color: var(--foreground); text-decoration: underline; }
.login-note { margin: 0; font-size: 14px; color: var(--muted-foreground); }
.login-card > .login-note + .login-note, .login-card > .login-error + .login-note { margin-top: var(--space-3); } /* Forgot password's notes one under another */
.login-error { margin: 0; font-size: 14px; color: var(--danger); }
.login-error:empty { margin-top: calc(-1 * var(--space-4)); } /* no gap held open for a message that is not there */
/* the website's one primary button: brand blue, 10px corners, flat */
.login-submit {
  width: 100%; min-height: 52px; margin-top: var(--space-2); border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-foreground);
  font: 600 1rem / 1 var(--font-ui); cursor: pointer; transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
@media (hover: hover) { .login-submit:not(:disabled):hover { background: color-mix(in oklab, var(--accent) 86%, black); } }
.login-submit:not(:disabled):active { transform: scale(0.98); }
.login-submit:disabled { opacity: 0.6; cursor: default; }
/* a hairline, not a card, between the form and the way to sign up */
.login-new { margin: var(--space-6) 0 0; padding-top: var(--space-5); border-top: 1px solid var(--border); font-size: 14px; color: var(--muted-foreground); }
.login-new a { color: var(--accent-ink); font-weight: 600; }
.login-social { display: flex; justify-content: center; gap: var(--space-1); margin: 0 0 var(--space-1); padding: 0; list-style: none; }
.login-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: var(--muted-foreground); }
.login-social a:hover { color: var(--foreground); background: var(--muted); }
.login-foot { margin: 0; font-size: 13px; color: var(--muted-foreground); text-align: center; }
.login-foot p { margin: 0; }
@keyframes login-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .login-card { animation: none; } .login-back, .login-submit { transition: none; } }
@media (max-width: 480px) {
  .login-back { padding: 0 var(--space-3); font-size: 0.875rem; }
}
@media (max-width: 359px) { .login-home span { display: none; } } /* the mark alone leaves the way back room on a very small phone */

/* wide screens: the dark side on the left, full height, with the line about Symphony Office; the form on the right */
@media (min-width: 960px) {
  body { grid-template-rows: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .login-side { border-bottom: 0; border-right: 1px solid var(--border); }
  .login-side::before { background: radial-gradient(60% 50% at 40% 45%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 70%); }
  .login-top { padding: var(--space-5) clamp(32px, 4vw, 64px); }
  .login-pitch { display: block; margin-block: auto; padding: var(--space-7) clamp(32px, 4vw, 64px) var(--space-8); }
  .login-pitch-line { margin: 0; font-size: clamp(2.5rem, 3vw + 0.5rem, 3.75rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; color: var(--foreground); }
  .login-pitch-lead { margin: var(--space-5) 0 0; max-width: 40ch; font-size: 1.125rem; line-height: 1.6; color: var(--muted-foreground); }
  .login { padding: var(--space-7) clamp(32px, 5vw, 80px) var(--space-5); grid-template-rows: 1fr auto; }
  .login-card { align-self: center; }
}

/* Finish your sign-up (finish-signup.html): a short line under a field, and whether the company id is free */
.login-hint { margin: var(--space-1, 4px) 0 0; font-size: 13px; color: var(--muted-foreground); }
.login-hint:empty { display: none; }
/* Finish your sign-up's folded fields (owner, 2026-10-22): a hairline above, as the website's questions */
.login-more { border-top: 1px solid var(--border); }
.login-more > summary { min-height: 44px; line-height: 44px; font-size: 14px; font-weight: 600; color: var(--muted-foreground); cursor: pointer; }
.login-more > summary:hover { color: var(--foreground); }
.login-more .login-field { margin-bottom: var(--space-4); } /* a <details> lays its contents out itself, so a grid gap on it does not reach them */
.login-hint[data-free="yes"] { color: var(--success); }
.login-hint[data-free="no"] { color: var(--danger); }
/* Finish your sign-up's I agree to the Terms (owner, 2026-11-01): the box beside its words, a 44px row to tap */
.login-agree { display: flex; align-items: flex-start; gap: var(--space-2); min-height: 44px; font-size: 14px; color: var(--foreground); cursor: pointer; }
.login-agree > input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }

/* Continue with Apple or Google (owner, 2026-10-31): each in its maker's own look (Apple's black, Google's white with its G), full width
   and as tall as the main button, then a hairline with "or" before the email form */
.login-providers { display: grid; gap: var(--space-3); }
.login-provider {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: var(--radius);
  font: 600 1rem / 1 var(--font-ui); text-decoration: none; transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
.login-provider svg { width: 20px; height: 20px; flex: none; }
.login-provider[data-p="apple"] { background: #000; color: #fff; }
.login-provider[data-p="google"] { background: #fff; color: #1f1f1f; border: 1.5px solid var(--border-strong); }
.login-provider:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.login-provider:active { transform: scale(0.98); }
@media (hover: hover) { .login-provider[data-p="apple"]:hover { background: #222; } .login-provider[data-p="google"]:hover { background: var(--muted); } }
.login-or { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-5) 0; font-size: 14px; color: var(--muted-foreground); }
.login-or::before, .login-or::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.login-ok { margin: 0 0 var(--space-4); font-size: 14px; color: var(--success); }
.login-error.login-oauth { margin: 0 0 var(--space-4); }
@media (prefers-reduced-motion: reduce) { .login-provider { transition: none; } }

/* The sign-up confirmation pages (api/public/confirm-signup): room above the button or link after the notes (owner, 2026-11-01). */
.login-card > .login-note + .login-note { margin-top: var(--space-3); }
.login-card .confirm-gap { margin-top: var(--space-6); }
