/* login.css — WikiMapping login 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 ──────────────────────────────────────────────── */
.login-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; }
.btn-nav-register {
  background: var(--wm-green) !important;
  font-weight: 600;
}
.btn-nav-register:hover {
  background: var(--wm-green-dark) !important;
}

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

/* ── Login Card ───────────────────────────────────────── */
.login-card {
  position: relative; z-index: 2;
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem 2rem 2rem;
  width: 100%; max-width: 400px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  text-align: center;
}
.card-logo {
  height: 60px; width: auto; margin-bottom: 0.5rem;
}
.login-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;
}

/* ── Error Message ────────────────────────────────────── */
.error-msg {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-align: left;
}
.error-msg.visible { display: block; }

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

.login-card input[type="email"],
.login-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;
}
.login-card input:focus {
  outline: none;
  border-color: var(--wm-blue);
  box-shadow: 0 0 0 3px rgba(23,122,181,0.12);
}

.login-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;
}
.login-card button:hover {
  background: var(--wm-blue-dark);
  transform: translateY(-1px);
}

/* ── 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) {
  .login-nav { padding: 0 1rem; }
  .nav-brand span { display: none; }
  .login-card { padding: 2rem 1.25rem 1.5rem; }
}
