:root {
  --bg: #f7f8f6;
  --bg-2: #eef1ee;
  --ink: #1c2a24;
  --ink-soft: #3f5249;
  --slate: #6b7c73;
  --line: rgba(28, 42, 36, 0.1);
  --accent: #2f9e86;
  --accent-d: #247a68;
  --accent-t: rgba(47, 158, 134, 0.14);
  --card: #ffffff;
  --danger: #c44b3c;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121916;
    --bg-2: #18211d;
    --ink: #e8efeb;
    --ink-soft: #b7c5be;
    --slate: #8a9a92;
    --line: rgba(232, 239, 235, 0.12);
    --accent: #3db89c;
    --accent-d: #2f9e86;
    --accent-t: rgba(61, 184, 156, 0.18);
    --card: #1a2420;
    --danger: #f07167;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  color: var(--accent-d);
}

.backdrop {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.5;
}

.orb-a {
  top: -8rem;
  right: -2rem;
  width: 26rem;
  height: 26rem;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 20%, transparent),
    transparent 70%
  );
}

.orb-b {
  bottom: 5%;
  left: -6rem;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--ink) 8%, transparent),
    transparent 70%
  );
}

.top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Clash Display", Inter, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand::before {
  content: "R";
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.top-link {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.top-link:hover {
  color: var(--accent);
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: calc(100vh - 72px);
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
}

.auth-card {
  width: 100%;
  max-width: 26rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 20px 50px color-mix(in srgb, var(--ink) 6%, transparent);
  padding: 1.75rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0.5rem 0 0;
  font-family: "Clash Display", Inter, sans-serif;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.lede {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

label {
  display: block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

input {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  padding: 0.75rem 0.85rem;
  font: inherit;
}

input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
  outline-offset: 1px;
}

.error {
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
  color: var(--danger);
}

.btn-primary {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.footer-note {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--slate);
  font-weight: 500;
}
