/* Shared with the Who Serves ministry app (ministers.css). */
:root {
  --navy:       #1B3A6B;
  --navy-dark:  #122850;
  --navy-light: #2a5298;
  --gold:       #C5972A;
  --gold-light: #E0B84A;
  --cream:      #F8F5EF;
  --bg:         #F0EEE9;
  --white:      #FFFFFF;
  --text:       #2C2C2C;
  --text-muted: #6B6B6B;
  --border:     #DDD5C0;
  --radius:     6px;
  --green:      #166534;
  --green-bg:   #dcfce7;
  --red:        #991b1b;
  --red-bg:     #fee2e2;
  --blue:       #1e3a8a;
  --blue-bg:    #dbeafe;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }

body {
  font-family: 'Lato', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

.home {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}
.home h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 8px;
}
.home p { margin-bottom: 20px; }

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-dark);
  padding: 24px 16px;
}
.login-card {
  background: var(--white);
  border-radius: 10px;
  padding: 40px 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.login-logo {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo .cross { font-size: 2rem; color: var(--gold); display: block; margin-bottom: 6px; }
.login-logo h1 { font-size: 1.35rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.login-logo p  { font-size: 0.9rem; color: var(--text-muted); margin-top: 3px; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
}
input:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(42,82,152,0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
}
.btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-dark); color: var(--white); }
.btn-full { width: 100%; justify-content: center; }

.card-links { text-align: center; margin-top: 18px; }
.card-links a { font-size: 0.84rem; color: var(--text-muted); }
.card-links a:hover { color: var(--gold); }

.hidden { display: none !important; }
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.alert-success { background: var(--green-bg); color: var(--green); border: 1px solid #bbf7d0; }
.alert-error   { background: var(--red-bg);   color: var(--red);   border: 1px solid #fca5a5; }
.alert-error ul { margin: 6px 0 0 18px; }
