*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0A0A0F;
  --surface: #13131A;
  --surface2: #1C1C26;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.13);
  --text: #F0EFF8;
  --muted: #9896AA;
  --accent: #5BFF8A;
  --accent-dim: rgba(91,255,138,0.12);
  --red: #FF5B5B;
  --red-dim: rgba(255,91,91,0.1);
  --radius: 12px;
}

html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

a { color: inherit; text-decoration: none; }

.auth-logo { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 0 auto 2rem; font-weight: 800; font-size: 22px; letter-spacing: -0.5px; text-decoration: none; color: var(--text); }
.auth-logo img { display: block; height: 34px; width: auto; }
.auth-logo .lo { color: var(--accent); }
/* Single transparent logo works on both themes — no dark/light swap needed. */

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 2rem;
  width: 100%; max-width: 420px;
}

.auth-title { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; margin-bottom: .3rem; }
.auth-sub { font-size: 13px; color: var(--muted); margin-bottom: 1.75rem; }

.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: .4rem; color: var(--muted); }
.field input {
  width: 100%; background: var(--surface2);
  border: 1px solid var(--border2); border-radius: var(--radius);
  color: var(--text); font-family: 'Inter', sans-serif;
  font-size: 15px; padding: 11px 14px; outline: none;
  transition: border-color 0.15s;
}
.field input::placeholder { color: #4a4860; }
.field input:focus { border-color: rgba(91,255,138,0.4); }
.field input.error { border-color: rgba(255,91,91,0.5); }

.field-row { display: flex; justify-content: space-between; align-items: center; }
.field-row label { margin-bottom: 0; }
.field-link { font-size: 12px; color: var(--accent); }
.field-link:hover { opacity: 0.8; }
.field-link-below { display: block; text-align: right; margin-top: .5rem; }

.error-msg {
  font-size: 12px; color: var(--red);
  background: var(--red-dim); border: 1px solid rgba(255,91,91,0.2);
  border-radius: 8px; padding: 8px 12px; margin-bottom: 1rem;
  display: none;
}
.error-msg.show { display: block; }

.btn-submit {
  width: 100%; background: var(--accent); color: #000;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 15px;
  padding: 12px; border-radius: var(--radius); border: none;
  cursor: pointer; transition: opacity 0.15s; margin-top: .25rem;
}
.btn-submit:hover { opacity: 0.88; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.divider-text {
  display: flex; align-items: center; gap: .75rem;
  margin: 1.25rem 0; font-size: 12px; color: var(--muted);
}
.divider-text::before, .divider-text::after {
  content: ''; flex: 1; height: 1px; background: var(--border2);
}

.btn-google {
  width: 100%; background: var(--surface2); color: var(--text);
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px;
  padding: 11px; border-radius: var(--radius);
  border: 1px solid var(--border2); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: border-color 0.15s;
}
.btn-google:hover { border-color: var(--border2); background: #222230; }
[data-theme="light"] .btn-google:hover { background: #ffffff; border-color: #aaa; }
.google-icon { width: 18px; height: 18px; }

.auth-footer { font-size: 13px; color: var(--muted); margin-top: 1.5rem; text-align: center; }
.auth-footer a { color: var(--accent); font-weight: 500; }
.auth-footer a:hover { opacity: 0.8; }

.terms-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 1rem; line-height: 1.6; }
.terms-note a { color: var(--muted); text-decoration: underline; }

.success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-dim); border: 2px solid rgba(91,255,138,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin: 0 auto 1.25rem;
}