/* Preserve the original login's layout, card, field surfaces and animated brand panel. */
:root {
  --brand: #2563EB; --brand-hover: #60A5FA; --ink: #1e293b; --muted: #64748B;
  --bg: #f8fafc; --surface: #fff; --input-bg: #f1f5f9; --line: #dddddd; --control: #b0bccc;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--ink); background: var(--bg); font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
[hidden] { display: none !important; }

.auth-shell { display: flex; min-height: 100dvh; }
.auth-main { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 40px; position: relative; }
.theme-toggle { position: absolute; top: 30px; left: 30px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: transparent; }
.theme-toggle:hover { background: var(--input-bg); }
.auth-card { width: 100%; max-width: 480px; padding: 30px; margin: 40px 0; background: var(--surface); border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.auth-card h1 { font-size: 28px; font-weight: 600; line-height: 1.3; margin: 0 0 32px; }
.auth-field { margin-bottom: 24px; }
.auth-field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.auth-field input { width: 100%; min-height: 48px; padding: 14px 16px; border: 1px solid var(--control); border-radius: 8px; background: var(--input-bg); color: var(--ink); font-size: 15px; }
.auth-field input::placeholder { color: var(--muted); }
.auth-field small { display: block; font-size: 12px; color: var(--muted); margin-top: 7px; }
.auth-password { position: relative; }
.auth-password input { padding-right: 65px; }
.auth-password button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); min-width: 44px; min-height: 32px; padding: 4px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 12px; }
.auth-password button:hover { color: var(--ink); }
.auth-help { text-align: right; margin: -12px 0 24px; font-size: 12px; line-height: 1.5; }
.auth-submit { width: 100%; min-height: 46px; padding: 14px; border: 0; border-radius: 8px; background: var(--brand); color: white; font-size: 15px; font-weight: 600; }
.auth-submit:hover:not(:disabled) { background: var(--brand-hover); }
.auth-submit:disabled { background: var(--input-bg); color: var(--muted); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.auth-google { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 14px; }
.google-g { font-size: 18px; font-weight: 700; }
.auth-hint { color: var(--muted); text-align: center; font-size: 11px; line-height: 1.5; margin: 8px 0 0; }
.auth-switch { text-align: center; color: var(--muted); font-size: 13px; line-height: 1.5; margin: 22px 0 0; }
.auth-switch button { border: 0; padding: 0; background: transparent; color: var(--brand); font-size: inherit; }
.auth-switch button:hover { text-decoration: underline; }
.auth-lead, .auth-notice { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 20px; }
.auth-notice strong { color: var(--ink); font-weight: 500; }
.auth-notice p { margin: 5px 0 0; }
.auth-error { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; border-radius: 8px; padding: 12px; font-size: 13px; line-height: 1.5; margin-bottom: 20px; }

.auth-visual { flex: 1; min-width: 0; padding: 20px; }
.auth-pattern { position: relative; display: flex; align-items: center; justify-content: center; height: 100%; min-height: calc(100dvh - 40px); overflow: hidden; border-radius: 12px; }
.auth-pattern video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-logo { position: relative; max-width: 60%; height: auto; }
@media (max-width: 968px) { .auth-visual { display: none; } }
@media (max-width: 480px) {
  .auth-main { padding: 20px; }
  .auth-card { padding: 32px 24px; margin: 60px 0 20px; }
  .theme-toggle { top: 20px; left: 20px; }
  .auth-field input { font-size: 16px; }
}
