@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

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

:root {
  --primary: #2d5016;
  --primary-2: #4a7c2f;
  --primary-soft: #edf4e6;
  --accent: #c8860a;
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface2: #f2f0eb;
  --line: rgba(0,0,0,.1);
  --text: #1a1a17;
  --muted: #5a5955;
  --subtle: #989692;
  --danger: #c0352b;
  --danger-soft: #fdecea;
  --radius: 10px;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', Arial, sans-serif;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  min-height: 100vh;
}

.login-left {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
}

.login-left::before,
.login-left::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}

.login-left::before { width: 340px; height: 340px; right: -90px; top: -90px; }
.login-left::after { width: 240px; height: 240px; left: -70px; bottom: -70px; }

.login-left-inner {
  position: relative;
  z-index: 1;
  width: min(440px, 80%);
}

.church-cross {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.14);
  font-size: 28px;
  font-weight: 700;
}

.church-name {
  margin-bottom: 16px;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}

.church-verse {
  max-width: 360px;
  color: rgba(255,255,255,.72);
  font-size: 15px;
  line-height: 1.7;
}

.church-ref {
  margin-top: 32px;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--surface);
}

.login-form-wrap {
  width: 100%;
  max-width: 340px;
}

.login-header { margin-bottom: 28px; }

.login-title {
  margin-bottom: 6px;
  font-size: 26px;
  font-weight: 700;
}

.login-sub {
  color: var(--muted);
  font-size: 13px;
}

.login-error {
  margin-bottom: 18px;
  padding: 11px 13px;
  border: 1px solid rgba(192,53,43,.2);
  border-radius: var(--radius);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
}

.login-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field-input {
  width: 100%;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

.field-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,80,22,.1);
}

.login-role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.login-role-option {
  display: block;
  cursor: pointer;
}

.login-role-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.login-role-option span {
  display: grid;
  min-height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.login-role-option input:checked + span {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.login-btn {
  min-height: 42px;
  margin-top: 6px;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.login-btn:hover { background: var(--primary-2); }

.login-footer {
  margin-top: 24px;
  color: var(--subtle);
  text-align: center;
  font-size: 12px;
}

.login-footer a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.login-footer a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .login-right { min-height: 100vh; padding: 28px 22px; }
}
