*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --accent: #2e5c8a;
  --accent-bright: #3d7ab8;
  --accent-soft: #e3eef8;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background: #152030;
  color: #1c2430;
}

.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.login-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: blur(2px) saturate(0.8);
}

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  padding: 2.75rem 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.login-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.login-church {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #5f6d7e;
  margin: 0 0 0.6rem;
  font-weight: 700;
}

.login-brand h1 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: #1c2430;
  letter-spacing: -0.02em;
}

.login-tagline {
  font-size: 0.88rem;
  color: #5f6d7e;
  margin: 0;
  line-height: 1.55;
}

.login-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1c2430;
}

.login-form input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid rgba(28, 36, 48, 0.15);
  border-radius: 12px;
  margin-bottom: 1rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 92, 138, 0.15);
}

.login-error {
  color: #b42318;
  font-size: 0.875rem;
  margin: 0 0 1rem;
}

.login-form button {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, #2e5c8a, #3d7ab8);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(46, 92, 138, 0.3);
}

.login-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(46, 92, 138, 0.35);
}

.login-form button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
