:root {
  --green: #216a42;
  --green-dark: #174f31;
  --green-footer: #1a5c38;
  --text: #333;
  --link-green: #2a7a52;
  --border: #c9d0cb;
  --input-border: #b8c0ba;
  --white: #fff;
  --bg: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ── page centering ──────────────────── */
.page-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

/* ── card ─────────────────────────────── */
.card {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.card-body {
  padding: 30px 32px 0;
}

/* ── logo ─────────────────────────────── */
.brand-logo {
  display: block;
  height: 64px;
  margin: 0 auto 20px;
  object-fit: contain;
}

/* ── fdic logo ────────────────────────── */
.fdic-logo {
  display: block;
  max-width: 80%;
  height: auto;
  margin: 0 auto 20px;
}

/* ── form ─────────────────────────────── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.field-group input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 0 10px;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field-group input:focus {
  border-color: #7caa90;
  box-shadow: 0 0 0 2px rgba(33, 106, 66, 0.12);
}

/* ── button ───────────────────────────── */
.login-btn {
  margin-top: 4px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.login-btn:hover {
  background: var(--green-dark);
}

/* ── helper links ─────────────────────── */
.helper-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 0 24px;
}

.helper-links a {
  color: var(--link-green);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.helper-links a:hover {
  text-decoration: underline;
}

/* ── card footer (green panel) ────────── */
.card-footer {
  background: var(--green);
  padding: 18px 28px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 12px;
  row-gap: 10px;
}

.card-footer a {
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

/* ── site footer ──────────────────────── */
.site-footer {
  background: var(--green-footer);
  color: var(--white);
  display: flex;
  align-items: center;
  padding: 12px 40px;
  gap: 32px;
}

.footer-logo-wrap {
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo {
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 12px;
  line-height: 1.6;
}

.footer-info a {
  color: var(--white);
  text-decoration: none;
}

.footer-info strong a {
  font-weight: 700;
}

.footer-legal {
  margin-left: auto;
  font-size: 12px;
  white-space: nowrap;
}

/* ── responsive ───────────────────────── */
@media (max-width: 460px) {
  .page-wrap {
    padding: 20px 12px;
  }

  .card-body {
    padding: 24px 20px 0;
  }

  .card-footer {
    padding: 16px 20px 18px;
  }

  .site-footer {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 24px;
    padding: 16px 16px 20px;
  }

  .footer-legal {
    margin-left: 0;
    text-align: center;
  }
}
