:root {
  --bg: #0a0c10;
  --bg-elevated: #12151c;
  --surface: #181c26;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f2f7;
  --muted: #94a0b8;
  --accent: #5b8cff;
  --accent-2: #3dd6c5;
  --danger: #ff7b7b;
  --radius: 12px;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(91, 140, 255, 0.18), transparent),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(61, 214, 197, 0.08), transparent);
  pointer-events: none;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 28px 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 18px;
}
.auth-brand img { width: 32px; height: 32px; border-radius: 8px; }

.auth-card h1 {
  margin: 0 0 18px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.auth-form { display: flex; flex-direction: column; gap: 12px; }

.auth-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  padding: 11px 12px;
  font-size: 0.95rem;
  outline: none;
}
.auth-field input:focus { border-color: var(--accent); }

.auth-error {
  display: none;
  background: rgba(255, 95, 95, 0.1);
  border: 1px solid rgba(255, 95, 95, 0.25);
  color: var(--danger);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.85rem;
}
.auth-error.show { display: block; }

.btn-auth {
  width: 100%;
  border: none;
  border-radius: 9px;
  padding: 12px 16px;
  font-size: 0.98rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-2), #29b8a8);
  color: #0a0c10;
  cursor: pointer;
  margin-top: 4px;
}
.btn-auth:disabled { opacity: 0.55; cursor: not-allowed; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 16px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.google-wrap {
  position: relative;
  width: 100%;
}
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  border-radius: 9px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-google:hover { background: #f7f8fa; }
.btn-google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.google-gsi {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  overflow: hidden;
}
.google-gsi:empty { display: none; }

.auth-footer {
  margin: 18px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.auth-footer a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { color: #8eb0ff; }
