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

:root {
  color-scheme: dark;
  --bg: #080b12;
  --surface: #111820;
  --border: #26352f;
  --text: #ecf6f0;
  --muted: #94a6a0;
  --green: #a0f7ba;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% 42%, #17332645, transparent 55%),
    var(--bg);
  color: var(--text);
  font: 14px 'DM Sans', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input { font: inherit; }

.auth-header {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 700 19px 'Space Grotesk', sans-serif;
  letter-spacing: -.05em;
}

.logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #baffd1, #55cda0);
  color: #092015;
  font-size: 28px;
}

.accent { color: var(--green); }

.back-link {
  color: #a0b0a8;
  font-size: 12px;
  font-weight: 700;
  transition: color .2s;
}

.back-link:hover { color: white; }

.auth-main {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 65px 20px 85px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 40px;
  border: 1px solid #345142;
  border-radius: 18px;
  background: linear-gradient(160deg, #14231d, #111820 55%);
  box-shadow: 0 30px 100px #0007;
}

.eyebrow {
  color: #8fe2ac;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #8df0b1;
  box-shadow: 0 0 15px #8df0b177;
}

h1 {
  margin: 20px 0 12px;
  font: 600 clamp(29px, 4vw, 36px)/1.15 'Space Grotesk', sans-serif;
  letter-spacing: -.055em;
}

.subtitle {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

#auth-form {
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.field label {
  font-size: 12px;
  font-weight: 700;
  color: #dcebe0;
}

.field input {
  width: 100%;
  height: 47px;
  padding: 0 15px;
  border: 1px solid #34473d;
  border-radius: 9px;
  outline: none;
  background: #0b1313;
  color: #ecf6f0;
  transition: border-color .2s, box-shadow .2s;
}

.field input::placeholder { color: #60796c; }

.field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #a0f7ba16;
}

.field input:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.field small {
  color: #829b8c;
  font-size: 10px;
  line-height: 1.5;
}

.terms label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #a8bcb0;
  font-size: 11px;
  line-height: 1.7;
  cursor: pointer;
}

.terms input {
  margin-top: 3px;
  accent-color: var(--green);
}

.auth-message {
  display: none;
  padding: 12px 14px;
  border: 1px solid #8e514c;
  border-radius: 9px;
  background: #43201f55;
  color: #ffb9b3;
  font-size: 12px;
  line-height: 1.6;
}

.auth-message:not(:empty) { display: block; }

.auth-message.success {
  border-color: #397e54;
  background: #1a3d2a88;
  color: #b5f4c7;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  min-height: 49px;
  border: none;
  border-radius: 9px;
  background: #a4f1bb;
  color: #0b2116;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.submit-button:hover:not(:disabled) {
  background: #c7ffda;
  transform: translateY(-2px);
}

.submit-button:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.auth-switch {
  margin: 30px 0 0;
  text-align: center;
  color: #91a99b;
  font-size: 12px;
  line-height: 1.7;
}

.auth-switch a {
  color: var(--green);
  font-weight: 800;
}

.auth-switch a:hover { text-decoration: underline; }

.auth-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding: 25px 40px;
  border-top: 1px solid var(--border);
  color: #73887d;
  font-size: 11px;
}

@media (max-width: 650px) {
  .auth-header { padding: 20px; }
  .brand { font-size: 16px; }
  .logo { width: 36px; height: 36px; }
  .back-link { font-size: 11px; }
  .auth-main { padding: 35px 16px 60px; }
  .auth-card { padding: 29px 23px; }
  .subtitle { margin-bottom: 28px; }
  .auth-footer { padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
  }
}
