/* register.css — WikiMapping registration page
   Matches landing page brand: #177AB5 / #0b5e92 / #8BC441
*/

:root {
  --wm-blue: #177AB5;
  --wm-blue-dark: #0b5e92;
  --wm-green: #8BC441;
  --wm-green-dark: #79b035;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #2d3748;
  background: #f4f7fb;
}

a { color: var(--wm-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav (same structure as landing) ─────────────────── */
.register-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  background: var(--wm-blue);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 56px;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: #fff; font-size: 1.2rem; font-weight: 700;
  text-decoration: none;
}
.nav-brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 0.5rem; }
.nav-links a {
  color: #fff; padding: 0.4rem 1rem; border-radius: 4px;
  font-size: 0.9rem; transition: background 0.2s;
  text-decoration: none;
}
.nav-links a:hover { background: rgba(255,255,255,0.15); text-decoration: none; }

/* ── Hero Background ─────────────────────────────────── */
.register-hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 5rem 1.5rem 2rem;
  background: url('/css/img/IMG_1509.jpeg') center/cover no-repeat;
  position: relative;
}
.register-hero::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(18,18,28,0.72);
}

/* ── Registration Card ───────────────────────────────── */
.register-card {
  position: relative; z-index: 2;
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem 2rem 2rem;
  width: 100%; max-width: 440px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  text-align: center;
}
.card-logo {
  height: 60px; width: auto; margin-bottom: 0.5rem;
}
.register-card h1 {
  font-size: 1.5rem; font-weight: 700; color: #1a202c;
  margin: 0 0 0.25rem;
}
.card-sub {
  font-size: 0.95rem; color: #64748b; margin: 0 0 1.5rem;
}

/* ── Form ────────────────────────────────────────────── */
.register-card form { text-align: left; }

.form-row {
  display: flex; gap: 0.75rem;
}
.form-row input { flex: 1; }

.register-card input[type="text"],
.register-card input[type="email"],
.register-card input[type="password"] {
  display: block; width: 100%;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #333;
  background: #fff;
  transition: border-color 0.2s;
}
.register-card input:focus {
  outline: none;
  border-color: var(--wm-blue);
  box-shadow: 0 0 0 3px rgba(23,122,181,0.12);
}

.register-card button {
  display: block; width: 100%;
  padding: 0.8rem;
  margin-top: 0.5rem;
  border: none; border-radius: 6px;
  background: var(--wm-blue);
  color: #fff;
  font-size: 1rem; font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.register-card button:hover {
  background: var(--wm-blue-dark);
  transform: translateY(-1px);
}

/* ── Username field feedback ─────────────────────────── */
.username-field { position: relative; }
.form-feedback {
  display: block;
  font-size: 0.8rem;
  margin: -0.4rem 0 0.5rem 0.1rem;
  min-height: 1.1em;
}
.form-feedback.available   { color: #2e7d32; }
.form-feedback.unavailable { color: #c62828; }
.form-feedback.checking    { color: #64748b; }

/* ── Card Footer ─────────────────────────────────────── */
.card-footer {
  margin-top: 1.25rem;
  font-size: 0.88rem; color: #64748b;
  text-align: center;
}
.card-footer a { font-weight: 600; }
.divider { margin: 0 0.4rem; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 480px) {
  .register-nav { padding: 0 1rem; }
  .nav-brand span { display: none; }
  .register-card { padding: 2rem 1.25rem 1.5rem; }
  .form-row { flex-direction: column; gap: 0; }
}
