@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Serif+Display&display=swap");

:root {
  --bg-1: #0d1b2a;
  --bg-2: #1b263b;
  --bg-3: #0f4c5c;
  --card: #f6f3ee;
  --card-2: #ffffff;
  --ink: #0c0f14;
  --muted: #586171;
  --accent: #f4b860;
  --accent-2: #e76f51;
  --border: rgba(12, 15, 20, 0.12);
  --shadow: 0 18px 45px rgba(8, 12, 20, 0.28);
}

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

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, rgba(244, 184, 96, 0.22), transparent 40%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 32px clamp(20px, 4vw, 64px);
  gap: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f5f7fb;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #111;
}

.brand-name {
  font-family: "DM Serif Display", serif;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.content {
  display: grid;
  place-items: center;
}

.auth-shell {
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.auth-shell.centered {
  grid-template-columns: 1fr;
  place-items: center;
}

.auth-card {
  background: var(--card);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.auth-card-narrow {
  max-width: 480px;
}

#verify-countdown {
  font-weight: 700;
  color: var(--accent);
}

#verify-countdown.urgent {
  color: #ef4444;
}

.auth-card.secondary {
  background: var(--card-2);
}

.auth-card h1 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 12px;
}

.auth-card p {
  color: var(--muted);
  line-height: 1.6;
}

.form {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.field input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 15px;
}

.field input:focus {
  outline: 2px solid rgba(244, 184, 96, 0.45);
  border-color: rgba(244, 184, 96, 0.75);
}

.password-field {
  position: relative;
  display: grid;
}

.password-field input {
  padding-right: 60px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 76, 92, 0.08);
  font-size: 12px;
  font-weight: 600;
  color: #0f4c5c;
  cursor: pointer;
}

.toggle-password:hover {
  background: rgba(15, 76, 92, 0.16);
}

.actions {
  display: grid;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #111;
  box-shadow: 0 12px 24px rgba(231, 111, 81, 0.3);
}

.button.primary:hover {
  transform: translateY(-1px);
}

.button.ghost {
  background: transparent;
  border: 1px solid rgba(12, 15, 20, 0.2);
}

.toggle-record.recording {
  background: rgba(231, 111, 81, 0.15);
  border-color: rgba(231, 111, 81, 0.6);
  color: #9b2c1f;
}

.google-button {
  background: #111827;
  color: #f9fafb;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.google-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #111;
  font-weight: 700;
  font-size: 12px;
}

.flash-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.flash {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(231, 111, 81, 0.12);
  color: #9b2c1f;
  font-size: 14px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  font-size: 14px;
}

.link-row a {
  color: #0f4c5c;
  font-weight: 600;
  text-decoration: none;
}

.link-row a:hover {
  text-decoration: underline;
}

.side-panel {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 40px);
  color: #f5f7fb;
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.side-panel h2 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 12px;
}

.side-panel ul {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.side-panel li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
}

.side-panel li span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
}

.footer {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.footer-shortcuts {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  text-align: right;
}

@media (max-width: 720px) {
  .page {
    padding: 24px 18px;
  }

  .topbar {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .topbar-actions {
    margin-left: auto;
  }
}
