:root {
  --bg: #f6f3ef;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #5b6473;
  --accent: #1f6feb;
  --accent-dark: #1447b8;
  --border: #e8ecf3;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --font: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(255, 235, 200, 0.7), transparent 60%),
    radial-gradient(1000px 700px at 100% 0%, rgba(210, 226, 255, 0.85), transparent 55%),
    var(--bg);
}

[hidden] {
  display: none !important;
}

.bg-orbit {
  position: fixed;
  inset: -20% 0 0 -10%;
  width: 60vmin;
  height: 60vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 111, 235, 0.15) 0%, transparent 65%);
  pointer-events: none;
  filter: blur(2px);
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  padding: 32px 20px 26px;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #64a5ff);
  box-shadow: 0 0 0 6px rgba(31, 111, 235, 0.12);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand__title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__subtitle {
  font-size: 0.9rem;
  color: var(--muted);
}

.env-badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.12);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.85rem;
}

.env-badge--staging {
  background: rgba(255, 171, 64, 0.16);
  color: #ad5c00;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px clamp(20px, 4vw, 46px);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  letter-spacing: -0.02em;
}

.muted {
  color: var(--muted);
}

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

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

.field span {
  font-weight: 600;
  font-size: 0.9rem;
}

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

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.18);
}

.btn {
  margin-top: 6px;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(31, 111, 235, 0.22);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.btn--google {
  width: 100%;
  margin-top: 0;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn--google:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.google-icon {
  width: 22px;
  height: 22px;
}

.btn--ghost {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid rgba(31, 111, 235, 0.24);
  box-shadow: none;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--muted);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.hint {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.status {
  margin-top: 12px;
  font-weight: 600;
  min-height: 1.4em;
}

.status.is-error {
  color: #b42318;
}

.status.is-success {
  color: #0f7a37;
}

.content-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0 0 8px;
}

.content-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 18px;
  background: #fbfcff;
}

.card h3 {
  margin-top: 0;
}

.card ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.mono {
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.noscript {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 16px;
  background: #111827;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .top {
    flex-direction: column;
    align-items: flex-start;
  }

  .content-head {
    flex-direction: column;
  }
}
