:root {
  --bg: #07131d;
  --panel: rgba(16, 35, 53, 0.9);
  --primary: #1ee0b6;
  --text: #ecfaff;
  --muted: #a6b9c8;
  --border: rgba(134, 169, 255, 0.3);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: radial-gradient(circle at top, #102335 0%, #07131d 58%);
  color: var(--text);
}
body { padding: 24px; }

.app-shell { max-width: 1450px; margin: 0 auto; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  background: rgba(9, 18, 28, 0.82);
  border-radius: 18px;
  border: 1px solid var(--border);
}
.brand-box { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; }
.topnav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nav-link,
.nav-link:visited {
  color: var(--text);
  text-decoration: none;
  opacity: 0.9;
}

.auth-panel {
  margin-top: 32px;
}
.auth-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
  padding: 25px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
}
.welcome-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.welcome-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}
.welcome-copy p,
.welcome-copy li,
.subtle-link {
  color: var(--muted);
}
.welcome-copy ul {
  margin: 16px 0 0;
  padding-left: 18px;
}

.auth-forms {
  background: rgba(11, 24, 34, 0.8);
  border-radius: 18px;
  padding: 20px;
}
.register-header {
  margin-bottom: 18px;
}
.register-header h3 {
  margin: 0 0 6px;
  font-size: 1.6rem;
}
.subtle-link {
  margin: 0;
}
.subtle-link a,
.subtle-link a:visited {
  color: var(--primary);
  text-decoration: none;
}

.auth-form label {
  display: block;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 0.95rem;
}
.auth-form input {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
}
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 10px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
}
.primary-btn {
  background: linear-gradient(135deg, var(--primary), #0d9c88);
  color: #032b2a;
}
.secondary-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
}

.google-btn { display: flex; gap: 10px; align-items: center; justify-content: center; }
.google-logo { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 4px; background: #ffffff; color: #000; font-weight: 700; }
.status-message {
  margin-top: 14px;
  min-height: 20px;
  color: var(--text);
}
.status-message.error {
  color: #ff8a8a;
}

@media (max-width: 800px) {
  body { padding: 16px; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .auth-card { grid-template-columns: 1fr; }
}
