/* ============================================================
   Living Water Prayer Portal — Login
   Brand: deep navy + ocean blue + heraldic gold
   Fonts: League Spartan · Source Sans 3 · Spectral
   Aligned with https://living-water.onrender.com/
   ============================================================ */

:root {
  --ink: #1a1f26;
  --navy: #0d2137;
  --navy-2: #13304f;
  --blue: #1d4e79;
  --blue-deep: #15395c;
  --gold: #b08d4f;
  --gold-soft: #caa867;
  --mist: #eef3f7;
  --mist-2: #f6f9fb;
  --line: #dce3ea;
  --muted: #56616e;
  --danger: #b42318;
  --danger-bg: #fef3f2;
}

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

html, body {
  min-height: 100%;
}

body.login-shell {
  font-family: 'Source Sans 3', system-ui, Arial, sans-serif;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background:
    linear-gradient(160deg, rgba(8, 18, 32, 0.92) 0%, rgba(13, 33, 55, 0.88) 45%, rgba(21, 57, 92, 0.9) 100%),
    radial-gradient(900px 500px at 15% 20%, rgba(176, 141, 79, 0.18), transparent 55%),
    radial-gradient(800px 480px at 90% 80%, rgba(29, 78, 121, 0.35), transparent 50%),
    #0a1c30;
  position: relative;
  overflow-x: hidden;
}

body.login-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='320'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1.5'%3E%3Cpath d='M0 240 C 360 180 720 300 1440 230'/%3E%3Cpath d='M0 270 C 360 210 720 330 1440 260'/%3E%3Cpath d='M0 300 C 360 240 720 360 1440 290'/%3E%3C/g%3E%3C/svg%3E") bottom / cover no-repeat;
}

.login-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.login-brand {
  text-align: center;
  color: #fff;
}

.login-brand img {
  height: 72px;
  width: auto;
  margin: 0 auto 1rem;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.login-brand .name {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1.15rem;
  line-height: 1.1;
  color: #fff;
}

.login-brand .name small {
  display: block;
  font-weight: 500;
  font-size: 0.58rem;
  letter-spacing: 0.38em;
  color: var(--gold-soft);
  margin-top: 0.4rem;
}

.login-card {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  border-top: 4px solid var(--gold);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 2rem 2rem 1.75rem;
}

.login-card .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.login-card .eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.85;
}

.login-card h1 {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 1.65rem;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.45rem;
  letter-spacing: -0.01em;
}

.login-card .subtitle {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.login-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(180, 35, 24, 0.2);
  border-left: 3px solid var(--danger);
  padding: 0.75rem 0.9rem;
  border-radius: 4px;
  margin-bottom: 1.15rem;
  font-size: 0.9rem;
}

.login-note {
  background: var(--mist-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  padding: 0.75rem 0.9rem;
  border-radius: 4px;
  margin-bottom: 1.15rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.login-note strong { color: var(--navy); }

.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  width: 100%;
}

.login-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
}

.login-field input {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.login-field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 121, 0.15);
}

.login-field input::placeholder {
  color: #9aa6b2;
}

.login-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem 1.25rem;
  border: 0;
  border-radius: 40px;
  background: var(--blue);
  color: #fff;
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(29, 78, 121, 0.28);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-login:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(29, 78, 121, 0.35);
  color: #fff;
  text-decoration: none;
}

.btn-login:active {
  transform: translateY(0);
}

.login-alt {
  text-align: center;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.login-alt a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

.login-alt a:hover {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.login-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  color: rgba(214, 224, 233, 0.75);
  font-size: 0.8rem;
  max-width: 440px;
}

.login-footer .verse {
  font-family: 'Spectral', Georgia, serif;
  font-style: italic;
  color: var(--gold-soft);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.login-footer a {
  color: var(--gold-soft);
  text-decoration: none;
}

.login-footer a:hover {
  color: #fff;
}

@media (max-width: 480px) {
  body.login-shell { padding: 1.5rem 1rem; }
  .login-card { padding: 1.5rem 1.25rem 1.35rem; }
  .login-card h1 { font-size: 1.4rem; }
  .login-brand img { height: 60px; }
}
