/* =========================================================
   Base
   ========================================================= */
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f7f5f0;
  color: #1c2536;
  margin: 0;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1000px; margin: 0 auto; padding: 24px 18px 60px; }
a { color: #1a51b8; }

/* =========================================================
   Landing
   ========================================================= */
.landing-body {
  background: #f7f5f0;
  color: #1c2536;
}
.landing {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(139,92,246,.10), transparent 60%),
    radial-gradient(800px 500px at 110% 15%, rgba(59,130,246,.10), transparent 55%),
    linear-gradient(170deg, #fdfcf9 0%, #f5f1ea 55%, #efeae1 100%);
  overflow: hidden;
}
.landing-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .35;
  pointer-events: none;
}
.landing-glow-1 { width: 520px; height: 520px; background: #c4b5fd; top: -180px; left: -140px; }
.landing-glow-2 { width: 460px; height: 460px; background: #93c5fd; bottom: -160px; right: -120px; }

.landing-wrap {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 60px 22px 80px;
  text-align: center;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e6e2d8;
  color: #475069;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: .3px;
  margin-bottom: 22px;
  box-shadow:
    0 6px 18px -10px rgba(76,60,30,.18),
    inset 0 1px 0 rgba(255,255,255,.9);
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #f59f00;
  box-shadow: 0 0 8px rgba(245,159,0,.7);
}

.landing-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  margin: 0 0 14px;
  color: #1c2536;
  letter-spacing: -0.5px;
}
.landing-subtitle {
  max-width: 700px;
  margin: 0 auto 42px;
  color: #5a6478;
  font-size: 15.5px;
  line-height: 1.65;
}

/* ---------- Category flex grid ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 46px;
}
@media (max-width: 720px) {
  .categories-grid { grid-template-columns: 1fr; }
}

/* ---------- Colored flex boxes (unchanged hues, deeper shadows for light bg) ---------- */
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 28px 22px;
  min-height: 220px;
  border-radius: 22px;
  text-decoration: none;
  color: #ffffff;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.04);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
  isolation: isolate;
}

.cat-card[data-theme="bishop"] {
  background: linear-gradient(155deg, #8b5cf6 0%, #6d28d9 45%, #4c1d95 100%);
  box-shadow:
    0 20px 40px -16px rgba(109, 40, 217, .45),
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -1px 0 rgba(0,0,0,.15);
}
.cat-card[data-theme="priest-deacon"] {
  background: linear-gradient(155deg, #3b82f6 0%, #1d4ed8 45%, #1e3a8a 100%);
  box-shadow:
    0 20px 40px -16px rgba(29, 78, 216, .45),
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -1px 0 rgba(0,0,0,.15);
}
.cat-card[data-theme="religious"] {
  background: linear-gradient(155deg, #14b8a6 0%, #0d9488 45%, #065f46 100%);
  box-shadow:
    0 20px 40px -16px rgba(13, 148, 136, .45),
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -1px 0 rgba(0,0,0,.15);
}
.cat-card[data-theme="laity"] {
  background: linear-gradient(155deg, #fbbf24 0%, #f59e0b 45%, #b45309 100%);
  box-shadow:
    0 20px 40px -16px rgba(245, 158, 11, .45),
    inset 0 1px 0 rgba(255,255,255,.4),
    inset 0 -1px 0 rgba(0,0,0,.15);
}

.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 320px at 100% 0%, rgba(255,255,255,.25), transparent 55%),
    radial-gradient(420px 260px at 0% 100%, rgba(0,0,0,.14), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.cat-card:hover {
  transform: translateY(-6px);
  filter: brightness(1.06);
}
.cat-card[data-theme="bishop"]:hover        { box-shadow: 0 30px 55px -18px rgba(109, 40, 217, .60), inset 0 1px 0 rgba(255,255,255,.40); }
.cat-card[data-theme="priest-deacon"]:hover { box-shadow: 0 30px 55px -18px rgba(29, 78, 216, .60), inset 0 1px 0 rgba(255,255,255,.40); }
.cat-card[data-theme="religious"]:hover     { box-shadow: 0 30px 55px -18px rgba(13, 148, 136, .60), inset 0 1px 0 rgba(255,255,255,.40); }
.cat-card[data-theme="laity"]:hover         { box-shadow: 0 30px 55px -18px rgba(245, 158, 11, .60), inset 0 1px 0 rgba(255,255,255,.45); }

.cat-body {
  position: relative;
  z-index: 1;
  flex-grow: 1;
}
.cat-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  margin: 0 0 10px;
  letter-spacing: -0.2px;
  text-shadow: 0 2px 3px rgba(0,0,0,.22);
}
.cat-body p {
  margin: 0 0 20px;
  color: rgba(255,255,255,.92);
  font-size: 14.5px;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
}

.cat-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.cat-count {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .3px;
  color: #ffffff;
  background: rgba(0,0,0,.22);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.20);
}
.cat-cta {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  color: #ffffff;
  transition: transform .22s ease, letter-spacing .22s ease;
}
.cat-card:hover .cat-cta {
  letter-spacing: .9px;
  transform: translateX(3px);
}

.landing-foot {
  color: #6b7280;
  font-size: 13px;
  margin-top: 10px;
}

/* =========================================================
   Hero (used on questionnaire, thankyou, admin, analytics)
   ========================================================= */
.hero {
  position: relative;
  background: #ffffff;
  border: 1px solid #e8e4da;
  border-radius: 18px;
  padding: 26px 30px;
  margin-bottom: 24px;
  box-shadow:
    0 10px 26px -16px rgba(76,60,30,.28),
    inset 0 1px 0 rgba(255,255,255,1);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(400px 160px at 100% 0%, rgba(76,110,245,.06), transparent 60%);
  pointer-events: none;
}
.hero h1 {
  margin: 0 0 6px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  color: #1e3a8a;
  letter-spacing: -0.2px;
}
.hero p { margin: 6px 0; color: #475069; font-size: 14.5px; }
.hero a { color: #1e3a8a; font-weight: 500; }

/* =========================================================
   Questionnaire
   ========================================================= */
.section {
  margin: 32px 0 12px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 55%, #2563eb 100%);
  color: #ffffff;
  border-radius: 14px;
  box-shadow:
    0 14px 28px -16px rgba(30, 58, 138, .55),
    inset 0 1px 0 rgba(255,255,255,.22);
}
.section h2 { margin: 0; font-size: 17px; letter-spacing: .2px; }
.section-intro { margin: 8px 0 0; font-size: 13.5px; color: #dbeafe; }

.question {
  background: #ffffff;
  border: 1px solid #e8e4da;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow:
    0 6px 18px -14px rgba(76,60,30,.32),
    inset 0 1px 0 rgba(255,255,255,.9);
  transition: box-shadow .18s ease, border-color .18s ease;
}
.question:hover {
  border-color: #d8d2c4;
  box-shadow:
    0 12px 26px -18px rgba(76,60,30,.38),
    inset 0 1px 0 rgba(255,255,255,.9);
}
.q-label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1c2536;
  font-size: 15px;
}
.req { color: #d92020; }

.question input[type=text],
.question input[type=number],
.question input[type=date],
.question textarea,
.question select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d6d0c2;
  border-radius: 10px;
  font: inherit;
  background: #fdfcf9;
  box-shadow: inset 0 1px 2px rgba(76,60,30,.06);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.question textarea { resize: vertical; min-height: 90px; }
.question input:focus,
.question textarea:focus,
.question select:focus {
  outline: none;
  border-color: #1e40af;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(30,64,175,.14), inset 0 1px 2px rgba(76,60,30,.05);
}

.options { display: flex; flex-direction: column; gap: 8px; }
.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
  transition: background .14s ease;
}
.opt:hover { background: #f7f3ea; }
.opt input { width: 18px; height: 18px; accent-color: #1e40af; }
.opt span { font-size: 15px; }

.table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
  border-radius: 14px;
  border: 1px solid #e8e4da;
  background: #fff;
  box-shadow: 0 8px 22px -16px rgba(76,60,30,.30);
}
.scale-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.scale-table thead th {
  background: linear-gradient(180deg, #f0f4ff 0%, #e4eafc 100%);
  color: #1e3a8a;
  padding: 11px 8px;
  font-size: 13px;
  text-align: center;
  border-bottom: 1px solid #d7dff0;
}
.scale-table thead th:first-child {
  text-align: left;
  padding-left: 16px;
  width: 55%;
}
.scale-table td { padding: 10px 8px; border-bottom: 1px solid #f0ece2; }
.scale-table tbody tr:last-child td { border-bottom: none; }
.scale-table tbody tr:hover { background: #fdfbf6; }
.scale-stmt { font-size: 14.5px; padding-left: 16px !important; }
.scale-cell { text-align: center; }
.scale-cell input { width: 18px; height: 18px; accent-color: #1e40af; }

.actions { text-align: center; margin-top: 26px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 60%, #2563eb 100%);
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-size: 15.5px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow:
    0 12px 24px -10px rgba(30, 58, 138, .55),
    inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 32px -14px rgba(30, 58, 138, .65),
    inset 0 1px 0 rgba(255,255,255,.32);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-block;
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-size: 15.5px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 12px 24px -10px rgba(75, 85, 99, .5),
    inset 0 1px 0 rgba(255,255,255,.22);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 32px -14px rgba(75, 85, 99, .6),
    inset 0 1px 0 rgba(255,255,255,.26);
}

/* =========================================================
   Common helpers
   ========================================================= */
.alert {
  background: linear-gradient(180deg, #fff5f5 0%, #ffeaea 100%);
  color: #a11212;
  border: 1px solid #f3c5c5;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.muted { color: #6b7280; font-size: 13.5px; }
.center { text-align: center; }

/* =========================================================
   Admin dashboard
   ========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.card {
  position: relative;
  display: block;
  background: #ffffff;
  border: 1px solid #e8e4da;
  border-radius: 16px;
  padding: 22px 22px 20px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow:
    0 8px 22px -16px rgba(76,60,30,.32),
    inset 0 1px 0 rgba(255,255,255,.9);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6, #14b8a6, #f59f00);
  opacity: .9;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #d8d2c4;
  box-shadow:
    0 18px 34px -20px rgba(76,60,30,.42),
    inset 0 1px 0 rgba(255,255,255,.9);
}
.card.active {
  border-color: #1e40af;
  box-shadow:
    0 0 0 2px rgba(30,64,175,.14),
    0 18px 34px -20px rgba(30,64,175,.4),
    inset 0 1px 0 rgba(255,255,255,.9);
}
.card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #1e3a8a;
  letter-spacing: -.1px;
}
.card p {
  margin: 0;
  color: #5a6478;
  font-size: 14px;
}

.admin-section {
  margin: 28px 0 12px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #eef4ff 0%, #e0eaff 100%);
  color: #1e3a8a;
  border-radius: 10px;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.admin-answer {
  background: #ffffff;
  border: 1px solid #e8e4da;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
  box-shadow:
    0 6px 18px -14px rgba(76,60,30,.32),
    inset 0 1px 0 rgba(255,255,255,.9);
}
.admin-answer .q-label { margin-bottom: 6px; font-size: 14px; }
.admin-answer .ans { color: #374151; font-size: 14.5px; }

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e8e4da;
  box-shadow:
    0 12px 30px -20px rgba(76,60,30,.38),
    inset 0 1px 0 rgba(255,255,255,.9);
}
.admin-table th,
.admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #f0ece2;
  font-size: 14px;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table thead th {
  background: linear-gradient(180deg, #f0f4ff 0%, #e4eafc 100%);
  color: #1e3a8a;
  font-weight: 600;
}
.admin-table tbody tr { transition: background .14s ease; }
.admin-table tbody tr:hover { background: #fdfbf6; }
.admin-table a {
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 600;
}
.admin-table a:hover { text-decoration: underline; }

.export-bar {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.export-btn { padding: 11px 20px !important; font-size: 14px !important; }
.export-note { font-size: 12.5px; }

/* =========================================================
   Analytics
   ========================================================= */
.analytics-body { background: #f7f5f0; }
.analytics-row { margin-bottom: 22px; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 20px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid #e8e4da;
  border-radius: 14px;
  box-shadow: 0 8px 22px -16px rgba(76,60,30,.32);
}
.tab {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #475069;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.tab:hover { background: #f7f3ea; color: #1e3a8a; }
.tab.active {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 60%, #2563eb 100%);
  color: #ffffff;
  box-shadow:
    0 8px 18px -8px rgba(30,58,138,.5),
    inset 0 1px 0 rgba(255,255,255,.28);
}

.analytics-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 8px 4px 18px;
}
.analytics-header h2 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  color: #1e3a8a;
  font-size: 24px;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
}
.chart-card {
  background: #ffffff;
  border: 1px solid #e8e4da;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow:
    0 10px 28px -20px rgba(76,60,30,.36),
    inset 0 1px 0 rgba(255,255,255,.9);
  display: flex;
  flex-direction: column;
}
.chart-card-wide { grid-column: 1 / -1; }
.chart-card-head { margin-bottom: 14px; }
.chart-section {
  font-size: 11.5px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 6px;
}
.chart-title {
  font-size: 15px;
  font-weight: 600;
  color: #1c2536;
  line-height: 1.4;
}
.chart-sub { margin-top: 4px; font-size: 12.5px; color: #6b7280; }

.chart-canvas-wrap {
  position: relative;
  height: 240px;
  flex-grow: 1;
}
.chart-canvas-tall { height: 300px; }

.text-answers { list-style: none; margin: 0; padding: 0; }
.text-answers li {
  background: #fdfbf6;
  border-left: 3px solid #3b82f6;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  font-size: 13.5px;
  color: #374151;
  line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.text-answers li.muted {
  border-left-color: #cbd5e1;
  color: #6b7280;
  background: transparent;
  font-style: italic;
  box-shadow: none;
}

/* =========================================================
   Admin Login — light version
   ========================================================= */
.login-body {
  background: #f7f5f0;
  min-height: 100vh;
  color: #1c2536;
  overflow-x: hidden;
}

.login-scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 90px;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(139,92,246,.14), transparent 60%),
    radial-gradient(800px 500px at 110% 15%, rgba(59,130,246,.14), transparent 55%),
    linear-gradient(170deg, #fdfcf9 0%, #f5f1ea 55%, #efeae1 100%);
  overflow: hidden;
}

.login-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .35;
  pointer-events: none;
}
.login-glow-1 { width: 460px; height: 460px; background: #c4b5fd; top: -160px; left: -120px; }
.login-glow-2 { width: 420px; height: 420px; background: #93c5fd; bottom: -140px; right: -100px; }

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 38px 36px 30px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #e8e4da;
  box-shadow:
    0 30px 60px -30px rgba(76,60,30,.35),
    0 12px 24px -18px rgba(76,60,30,.25),
    inset 0 1px 0 rgba(255,255,255,1);
  animation: loginRise .5s cubic-bezier(.2,.9,.3,1);
}
@keyframes loginRise {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(59,130,246,.06), transparent 60%),
    radial-gradient(300px 200px at 0% 100%, rgba(139,92,246,.05), transparent 60%);
  pointer-events: none;
}

/* Brand mark */
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.login-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  color: #ffffff;
  background: linear-gradient(145deg, #3b82f6 0%, #8b5cf6 100%);
  box-shadow:
    0 12px 22px -10px rgba(76,110,245,.65),
    inset 0 1px 0 rgba(255,255,255,.4),
    inset 0 -1px 0 rgba(0,0,0,.15);
}
.login-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 12px;
  letter-spacing: .4px;
  color: #6b7280;
}
.login-brand-text strong {
  font-size: 15px;
  font-weight: 700;
  color: #1c2536;
  letter-spacing: .2px;
}

/* Headings */
.login-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  margin: 0 0 6px;
  color: #1c2536;
  letter-spacing: -0.3px;
}
.login-subtitle {
  margin: 0 0 24px;
  color: #5a6478;
  font-size: 14px;
  line-height: 1.55;
}

/* Alert */
.login-alert {
  background: linear-gradient(180deg, #fff5f5 0%, #ffeaea 100%);
  border: 1px solid #f3c5c5;
  color: #a11212;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

/* Form */
.login-form { display: flex; flex-direction: column; gap: 16px; }

.login-field { display: flex; flex-direction: column; }
.login-field label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .3px;
  color: #475069;
  margin-bottom: 7px;
  text-transform: uppercase;
}
.login-field input {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 14.5px;
  color: #1c2536;
  background: #fdfcf9;
  border: 1px solid #d6d0c2;
  border-radius: 11px;
  box-shadow:
    inset 0 1px 2px rgba(76,60,30,.06),
    0 1px 0 rgba(255,255,255,.6);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  outline: none;
}
.login-field input::placeholder { color: #9aa2b1; }
.login-field input:focus {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow:
    0 0 0 3px rgba(59,130,246,.18),
    inset 0 1px 2px rgba(76,60,30,.05);
}

/* Button */
.login-btn {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 55%, #8b5cf6 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  box-shadow:
    0 16px 28px -12px rgba(76,110,245,.65),
    inset 0 1px 0 rgba(255,255,255,.32),
    inset 0 -1px 0 rgba(0,0,0,.15);
}
.login-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    0 22px 36px -14px rgba(76,110,245,.75),
    inset 0 1px 0 rgba(255,255,255,.38),
    inset 0 -1px 0 rgba(0,0,0,.18);
}
.login-btn:active { transform: translateY(0); }
.login-btn-arrow { font-size: 16px; transition: transform .18s ease; }
.login-btn:hover .login-btn-arrow { transform: translateX(4px); }

/* Footer inside card */
.login-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #eae5da;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: #6b7280;
}
.login-foot a {
  color: #1e3a8a;
  text-decoration: none;
  border-bottom: 1px dashed rgba(30,58,138,.35);
  transition: color .15s ease, border-color .15s ease;
}
.login-foot a:hover {
  color: #2563eb;
  border-bottom-color: #2563eb;
}
.login-dot { opacity: .5; }

/* =========================================================
   Footer credit (light version)
   ========================================================= */
.site-credit {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 22px 30px;
  color: #6b7280;
  font-size: 13px;
  letter-spacing: .2px;
  border-top: 1px solid #e6e2d8;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(4px);
}
.site-credit a {
  color: #1e3a8a;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(30,58,138,.35);
  transition: color .18s ease, border-color .18s ease;
}
.site-credit a:hover {
  color: #2563eb;
  border-bottom-color: #2563eb;
}
.credit-dot { opacity: .55; margin: 0 6px; }

.admin-credit {
  margin-top: 40px;
  padding-top: 18px;
  text-align: center;
  font-size: 12.5px;
  color: #6b7280;
  letter-spacing: .2px;
  border-top: 1px solid #e8e4da;
}
.admin-credit a {
  color: #1e3a8a;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(30,58,138,.35);
  transition: color .18s ease, border-color .18s ease;
}
.admin-credit a:hover {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.site-credit-login {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  border-top: none;
  background: transparent;
  color: #7b8794;
  font-size: 12.5px;
  padding: 20px;
  backdrop-filter: none;
}