:root {
  color-scheme: light dark;
  --cream: #fff8ef;
  --surface: #ffffff;
  --ink: #1b1b1b;
  --muted: #5c5c5c;
  --line: #f0e6d6;
  --coral: #ef476f;
  --yellow: #ffd166;
  --blue: #118ab2;
  --link: #118ab2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #17140f;
    --surface: #221e18;
    --ink: #f7f0e5;
    --muted: #a89e8f;
    --line: #342d24;
    --link: #6cc9e8;
  }
}


* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}

.nav {
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -0.02em;
  color: inherit;
  font-weight: 900;
  font-size: 1rem;
}

.auth-wrap {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 56px 24px 72px;
}

.auth-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
}

.shape-yellow {
  width: 110px;
  height: 110px;
  background: var(--yellow);
  top: -30px;
  left: 6%;
}

.shape-blue {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: var(--blue);
  bottom: 40px;
  right: 10%;
  transform: rotate(12deg);
}

.shape-coral {
  width: 90px;
  height: 90px;
  background: var(--coral);
  bottom: -34px;
  left: 18%;
  opacity: 0.85;
}

.card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border-radius: 22px;
  padding: 30px 28px;
  box-shadow: 0 6px 0 var(--line);
}

.card h1 {
  font-size: 1.5rem;
  font-weight: 900;
  text-align: center;
  margin: 0;
}

.card-sub {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin: 8px 0 0;
}

.field {
  display: block;
  margin-top: 18px;
}

.field span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.field input {
  width: 100%;
  font: inherit;
  font-size: 0.9rem;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}

.field input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--muted);
}

.row label {
  display: flex;
  align-items: center;
  gap: 7px;
}

button {
  width: 100%;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px;
  margin-top: 20px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.alt {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin: 16px 0 0;
}

.message {
  display: none;
  font-size: 0.8rem;
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 18px;
}

.message.active {
  display: block;
}

.message.error {
  background: #fdecef;
  color: #a32741;
}

.message.success {
  background: #eaf6fa;
  color: #0d6c8c;
}

@media (max-width: 480px) {
  .auth-wrap {
    padding: 32px 18px 48px;
  }
}

.brand-mark {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}
