@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800;900&display=swap");

:root {
  --bg: #030712;
  --panel: rgba(12, 18, 32, 0.82);
  --line: rgba(255, 255, 255, 0.13);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #22c55e;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(68, 208, 255, 0.16), transparent 25%),
    radial-gradient(circle at 82% 8%, rgba(43, 87, 255, 0.16), transparent 26%),
    linear-gradient(180deg, #020617 0%, var(--bg) 100%);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.auth-card {
  width: min(100%, 448px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  border-radius: 16px;
  background: #fff;
  color: #020617;
  font-size: 26px;
  font-weight: 900;
}

.auth-title {
  margin: 0;
  text-align: center;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.auth-sub {
  margin: 10px 0 30px;
  text-align: center;
  color: var(--muted);
}

.auth-sub a,
.check a,
.terms a,
.back-link {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 800;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field span {
  font-size: 14px;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(3, 7, 18, 0.78);
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
}

.field input::placeholder {
  color: #64748b;
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 2px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
}

.auth-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #020617;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.notice {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.form-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: #93c5fd;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.form-message.error {
  color: #fca5a5;
}

.form-message.success {
  color: #86efac;
}

.back-link {
  display: block;
  margin-top: 22px;
  text-align: center;
}

.auth-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  text-decoration: none;
}

@media (max-width: 520px) {
  .auth-card {
    padding: 26px 18px;
    border-radius: 22px;
  }

  .auth-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
