/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* Theme (match home/login) */
:root{
  --bg:#0d0f12;
  --card:#0f141d;
  --line:#1b2230;
  --text:#e9eef5;
  --muted:#b6c2d0;
  --accent:#7fc4ff;
  --accent-strong:#4aa2ff;
  --shadow: 0 10px 35px rgba(0,0,0,.45);
}

html, body { height: 100%; }
body{
  font-family:'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Single-panel layout with subtle background */
.signup-wrap{
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    radial-gradient(80% 60% at 70% 20%, rgba(127,196,255,.08), transparent 60%),
    radial-gradient(70% 60% at 10% 80%, rgba(127,196,255,.05), transparent 60%);
}

/* Card */
.card{
  width: min(520px, 94%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.title{ font-size: 1.4rem; margin-bottom: 8px; }
.tagline{ color: var(--muted); font-size: .98rem; margin-bottom: 12px; }

/* Flash messages */
.flash{
  background: #191f2a;
  border: 1px solid #2a3546;
  color: #cfe1ff;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.msg.error{ color:#ffb4b4; }
.msg.success{ color:#b8ffbf; }

/* Form */
.form{ display: grid; gap: 10px; margin-bottom: 14px; }
.form label{ font-size: .9rem; color: var(--muted); }
.form input{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0c1118;
  color: var(--text);
  outline: none;
}
.form input:focus{
  border-color: #2b4767;
  box-shadow: 0 0 0 3px rgba(127,196,255,.12);
}

/* Button */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; text-decoration: none; padding: 10px 14px;
  border-radius: 10px; font-weight: 600; border: 1px solid transparent;
  transition: background .15s ease, border .15s ease, transform .03s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--accent); color:#081018; width: 100%; }
.btn-primary:hover{ background: var(--accent-strong); }

/* Footer/meta */
.meta{ margin-top: 6px; text-align: center; color: var(--muted); }
.meta a{ color: var(--text); text-decoration: none; }
.meta a:hover{ text-decoration: underline; }
