@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #0f1116;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --accent-start: #b07bff;
  --accent-end: #7c3aed;
  --radius: 10px;
  --card-radius: 12px;
  --shadow-soft: 0 10px 30px rgba(2, 6, 23, 0.45);
  --panel-top: rgba(255, 255, 255, 0.02);
  --panel-bottom: rgba(255, 255, 255, 0.01);
  --glass-border: rgba(255, 255, 255, 0.03);
  --panel-glow: rgba(124, 58, 237, 0.06);
  --max-width: 980px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
  color-scheme: dark;
  color: var(--text);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  background: radial-gradient(
      600px 300px at 10% 10%,
      rgba(124, 58, 237, 0.06),
      transparent 8%
    ),
    radial-gradient(
      500px 250px at 90% 90%,
      rgba(176, 123, 255, 0.04),
      transparent 8%
    ),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

.page {
  padding: 72px 0 48px;
}

.center-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 20px 0;
}

.panel {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  border: 1px solid var(--glass-border);
  padding: 26px;
  border-radius: var(--card-radius);
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.65), 0 2px 0 var(--panel-glow) inset;
  outline: 1px solid rgba(123, 97, 255, 0.06);
  outline-offset: 6px;
}

.signup-inner {
  max-width: 460px;
  margin: 0 auto;
}
.signup-inner h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 800;
}

.field {
  display: block;
  margin-bottom: 14px;
}
.label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 0.98rem;
  outline: none;
}

.signup-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.row.between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}
.link.muted {
  color: var(--muted);
  text-decoration: none;
}

.form-error {
  display: none;
  color: #ffb4b4;
  background: linear-gradient(
    180deg,
    rgba(255, 75, 75, 0.06),
    rgba(255, 75, 75, 0.03)
  );
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 75, 75, 0.08);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.98rem;
}
.btn.primary {
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  color: white;
  border: none;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.12);
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
.btn.full {
  width: 100%;
  padding: 14px 16px;
}

.account-text {
  margin-top: 22px;
  padding-top: 8px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}
.account-text a.create-link {
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.12s ease;
}
.account-text a.create-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.link.muted {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 980px) {
  .page {
    padding: 40px 0;
  }
  .center-wrap {
    min-height: 50vh;
    padding: 12px;
  }
  .panel {
    max-width: 100%;
    padding: 20px;
    margin: 0 12px;
  }
  .signup-inner {
    max-width: 100%;
  }
  .account-text {
    margin-top: 18px;
  }
}
