:root{--navy:#123b68;--blue:#1769aa;--green:#0c9b62;--ink:#1d2b3d;--muted:#637184;--line:#dbe4ed;--bg:#f4f7fb}*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.55}.topbar{height:78px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(calc((100% - 1180px)/2),24px);border-bottom:1px solid #e7edf4}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;color:var(--navy)}.brand-mark,.mini-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#0a9c63,#1b6ab3);color:#fff;font-weight:900;font-size:23px}.brand strong{display:block;font-size:17px;letter-spacing:.2px}.brand small{display:block;color:#69788a;font-size:11px}.topbar nav{display:flex;gap:27px}.topbar nav a{font-size:13px;text-decoration:none;color:#30435a;font-weight:600}.topbar nav a:hover{color:var(--green)}.page{max-width:1180px;margin:0 auto;padding:26px 24px 50px}.hero{display:grid;grid-template-columns:1.04fr .96fr;min-height:380px;border-radius:22px;overflow:hidden;background:linear-gradient(120deg,#0d2e54,#15548b);color:white;box-shadow:0 15px 40px #183b5c18}.hero-copy{padding:47px 40px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.6px;color:var(--green)}.hero .eyebrow{color:#82e2b8}.hero h1{font-size:44px;line-height:1.08;margin:14px 0 17px;letter-spacing:-1.4px}.hero h1 span{color:#7fe0b5}.hero-copy p{max-width:470px;color:#e0eaf5;font-size:15px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:0;border-radius:8px;padding:12px 18px;font-weight:750;font-size:13px;text-decoration:none;cursor:pointer;transition:transform .15s,filter .15s}.btn:hover{filter:brightness(1.04);transform:translateY(-1px)}.primary{background:var(--green);color:#fff}.outline{background:white;color:var(--navy);border:1px solid #cbd8e6}.full{width:100%;margin-top:17px}.trust-line{display:flex;flex-wrap:wrap;gap:15px;margin-top:27px;font-size:11px;color:#d8e9f7}.hero-art{position:relative;display:grid;place-items:center;min-height:330px;background:radial-gradient(circle at 55% 40%,#4c9d9a 0,#1e6888 34%,#154a79 68%,#123b68 100%);overflow:hidden}.art-circle{width:330px;height:330px;border-radius:50%;border:1px solid #ffffff2c;position:absolute;box-shadow:0 0 0 38px #ffffff08,0 0 0 78px #ffffff06}.document-card{position:relative;width:230px;height:260px;background:#fff;border-radius:13px;padding:23px 21px;box-shadow:0 25px 55px #071a3155;transform:rotate(4deg);color:var(--navy)}.doc-head{display:flex;align-items:center;gap:9px;font-weight:800;font-size:12px}.doc-head small{display:block;font-size:8px;color:#7c8999;font-weight:600}.mini-mark{width:31px;height:31px;font-size:16px}.doc-line{height:8px;width:70%;background:#e8eef5;border-radius:4px;margin-top:18px}.doc-line.wide{width:100%;margin-top:28px}.doc-line.short{width:46%;margin-top:9px}.doc-row{display:flex;gap:10px;margin-top:17px}.doc-row span{height:30px;flex:1;border:1px solid #dfe7f0;border-radius:4px}.doc-check{position:absolute;right:-16px;bottom:27px;width:51px;height:51px;border-radius:50%;background:#0c9b62;color:white;display:grid;place-items:center;font-size:27px;border:5px solid #fff}.secure-pill{position:absolute;bottom:27px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#fff;color:#27415c;padding:10px 15px;border-radius:22px;font-size:11px;font-weight:700;box-shadow:0 7px 20px #09223b3a}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:19px 0 40px}.feature-grid article{background:#fff;border:1px solid #e6edf4;border-radius:13px;padding:20px 18px;box-shadow:0 4px 14px #173b5b05}.feature-icon{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;font-size:20px;font-weight:800}.green{background:#e1f7ed;color:#0a9c63}.blue{background:#e5f0ff;color:#2468c9}.purple{background:#f0eaff;color:#7a50d0}.orange{background:#fff0df;color:#e88322}.feature-grid h3{font-size:14px;margin:13px 0 5px}.feature-grid p{font-size:12px;color:var(--muted);margin:0}.login-section{display:grid;grid-template-columns:1fr 420px;gap:70px;align-items:center;padding:20px 6% 44px}.login-intro h2,.form-heading h1{font-size:31px;color:var(--navy);margin:9px 0}.login-intro>p,.form-heading p{color:var(--muted);max-width:500px;font-size:14px}.help-note{margin-top:25px;padding:15px 18px;background:#eaf3fb;border-left:3px solid var(--blue);border-radius:7px;font-size:12px;color:#50627a}.login-card{background:#fff;border:1px solid #e1e9f1;border-radius:16px;padding:27px;box-shadow:0 12px 35px #1539560c}.login-card h2{font-size:20px;text-align:center;color:var(--navy);margin:8px 0 0}.lock-icon{margin:auto;width:43px;height:43px;display:grid;place-items:center;border-radius:50%;background:#e2f7ed;color:var(--green);font-size:23px;font-weight:bold}.muted{color:var(--muted);font-size:12px}.login-card>.muted{text-align:center;margin:4px 0 22px}.login-card label,.form-card label{display:block;font-size:12px;font-weight:700;color:#30435a;margin:14px 0 6px}em{color:#e34b4b;font-style:normal}input,select{width:100%;height:43px;border:1px solid #cfd9e4;border-radius:7px;background:#fff;padding:10px 12px;font:inherit;font-size:13px;color:var(--ink);outline:none}input:focus,select:focus{border-color:#2b83c9;box-shadow:0 0 0 3px #2b83c91c}.tiny{font-size:10px;color:#788596;text-align:center;margin:14px 0 0}.help-strip{display:flex;align-items:center;justify-content:space-between;background:#eaf6f0;border-radius:12px;padding:18px 25px}.help-strip p{font-size:12px;color:#557064;margin:3px 0 0}footer{background:#102f50;color:#d9e6f1;padding:25px max(calc((100% - 1132px)/2),24px);display:flex;justify-content:space-between;gap:35px;font-size:11px}footer p{margin:3px 0;color:#9fb4c9}footer>div:last-child{max-width:430px;color:#b4c6d7}.flash-wrap{margin-bottom:15px}.flash{padding:12px 15px;border-radius:8px;font-size:13px;margin-bottom:8px}.flash.error{background:#fff0ef;color:#a92d28;border:1px solid #f6d0cd}.flash.success{background:#e7f8ef;color:#16724a}.form-heading{margin:16px 0 20px}.form-heading h1{font-size:32px}.member-banner{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid var(--line);padding:14px 18px;border-radius:12px;margin-bottom:22px}.avatar{width:43px;height:43px;display:grid;place-items:center;border-radius:50%;background:#e1f2ff;color:var(--blue);font-size:18px;font-weight:800}.member-banner strong{display:block;font-size:14px}.member-banner small{display:block;font-size:11px;color:var(--muted)}.verified{margin-left:auto;background:#e1f7ed;color:#0a8b58;padding:5px 10px;border-radius:20px;font-size:11px;font-weight:800}.stepper{display:flex;align-items:center;gap:9px;margin:20px 0;color:#738195;font-size:11px}.step-dot{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#dce5ef;color:#65758a;font-weight:800;flex-shrink:0}.step-dot.active{background:var(--blue);color:#fff}.stepper i{height:1px;flex:1;background:#d4dfeb}.form-card{background:#fff;border:1px solid #e1e9f1;border-radius:14px;padding:25px;margin-bottom:20px;box-shadow:0 8px 25px #173b5b06}.form-card h2{font-size:19px;color:var(--navy);margin:0 0 4px}.section-icon{display:inline-grid;place-items:center;background:#e8f2ff;color:var(--blue);border-radius:8px;width:34px;height:32px;font-size:12px;margin-right:8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:22px;row-gap:2px}.form-actions{display:flex;justify-content:space-between;gap:12px;margin-top:25px;padding-top:18px;border-top:1px solid #edf1f5}.subheading{margin:24px 0 5px;color:var(--navy);font-size:15px}.review-notice{background:#edf6ff;border:1px solid #d8eaff;color:#345879;padding:14px;border-radius:8px;font-size:12px;margin:17px 0}.declaration{display:flex!important;align-items:flex-start;gap:10px;line-height:1.5;background:#f7f9fc;padding:14px;border-radius:8px}.declaration input{width:17px;height:17px;flex-shrink:0;margin-top:2px}.confirmation-card{max-width:690px;margin:30px auto;background:#fff;border:1px solid #e1e9f1;border-radius:18px;padding:36px;text-align:center;box-shadow:0 12px 35px #1539560c}.success-mark{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;margin:0 auto 17px;background:#e1f7ed;color:var(--green);font-size:30px;font-weight:900}.success-mark.warning{background:#fff2df;color:#b96a00}.confirmation-card h1{font-size:27px;color:var(--navy);margin:8px 0}.confirmation-card>p{font-size:13px;color:var(--muted);max-width:510px;margin:0 auto 20px}.reference-box{display:flex;align-items:center;gap:12px;background:#f5f8fc;border:1px dashed #b8c9da;border-radius:10px;padding:15px;margin:22px 0}.reference-box small{font-size:10px;color:#738195}.reference-box strong{color:var(--navy);font-size:14px;margin-right:auto}.copy-btn{border:0;background:#e3edf8;color:var(--navy);border-radius:6px;padding:7px 10px;cursor:pointer;font-weight:700}.status-row{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #edf1f5;padding:12px 0;text-align:left;font-size:12px}.status-row span{color:var(--muted)}.status-row strong{max-width:60%;text-align:right}.confirmation-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin:24px 0 5px}.tracking-card{max-width:470px;margin:20px 0 25px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px}th,td{text-align:left;border-bottom:1px solid #e8edf3;padding:12px 10px}th{background:#f5f8fc;color:#53647a}.status-tag{display:inline-block;background:#fff2cf;color:#88620a;border-radius:14px;padding:4px 8px;font-size:10px;font-weight:800}[hidden]{display:none!important}@media(max-width:850px){.hero{grid-template-columns:1fr}.hero-copy{padding:36px 28px}.hero-art{min-height:310px}.feature-grid{grid-template-columns:repeat(2,1fr)}.login-section{grid-template-columns:1fr;gap:25px;padding:15px 0 35px}.login-card{max-width:500px;width:100%;margin:auto}.topbar{padding:0 20px}.topbar nav{gap:12px}.topbar nav a{font-size:11px}.page{padding:18px 16px 35px}}@media(max-width:560px){.topbar{height:auto;min-height:70px;align-items:flex-start;padding:14px 16px;gap:12px;flex-direction:column}.topbar nav{width:100%;justify-content:space-between}.hero h1{font-size:36px}.hero-copy{padding:30px 22px}.feature-grid{grid-template-columns:1fr 1fr;gap:9px}.feature-grid article{padding:14px}.feature-grid p{font-size:11px}.form-grid{grid-template-columns:1fr}.stepper{gap:5px;font-size:9px}.step-dot{width:22px;height:22px}.form-card{padding:18px}.form-actions{flex-wrap:wrap}.form-actions .btn{flex:1}footer{padding:22px 18px;flex-direction:column;gap:12px}.confirmation-card{padding:25px 17px}.reference-box{flex-wrap:wrap}.status-row{font-size:11px}}
.brand-logo {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand {
  gap: 12px;
}
@media (max-width: 560px) {
  .brand-logo {
    width: 48px;
    height: 48px;
  }
}


/* Scrolling footer */
footer {
  overflow: hidden;
  position: relative;
}

footer .scrolling-footer {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  margin-top: 10px;
}

footer .scrolling-footer span {
  display: inline-block;
  padding-left: 100%;
  animation: chuna-footer-scroll 22s linear infinite;
  font-style: italic;
  color: #d9e6f1;
}

@keyframes chuna-footer-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  footer .scrolling-footer span {
    animation: none;
    padding-left: 0;
    white-space: normal;
  }
}

/* CHUNA SACCO OTP page redesign and site-wide sticky footer layout */
html { min-height: 100%; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar { flex-shrink: 0; }
main.page {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1230px;
  margin: 0 auto;
  padding: 28px 28px 38px;
}
body > footer {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 1.2fr;
  align-items: center;
  gap: 28px;
  width: 100%;
  padding: 24px max(calc((100% - 1174px)/2), 28px);
  min-height: 96px;
}
body > footer > div:last-child { max-width: none; }
body > footer .scrolling-footer { margin-top: 0; }
.otp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.85fr);
  gap: clamp(35px, 6vw, 90px);
  align-items: center;
  max-width: 1080px;
  min-height: 530px;
  margin: 0 auto;
  padding: 20px 0 30px;
}
.otp-welcome { padding: 10px 0; }
.otp-welcome .eyebrow {
  display: inline-block;
  padding: 8px 12px;
  background: #e0f6eb;
  border: 1px solid #c6edda;
  border-radius: 30px;
  color: #087b4e;
  font-size: 10px;
  letter-spacing: 1.15px;
}
.otp-welcome h1 {
  color: #123b68;
  font-size: clamp(34px, 3.6vw, 47px);
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin: 22px 0 15px;
}
.otp-welcome h1 span { color: #0c9b62; }
.welcome-copy {
  max-width: 480px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.8;
}
.otp-illustration {
  position: relative;
  height: 210px;
  max-width: 460px;
  margin: 12px auto 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 45%, #e2f7ed 0, #edf7fb 44%, #e7effb 100%);
}
.orbit {
  position: absolute;
  width: 175px;
  height: 175px;
  border: 1px solid #a8ddc5;
  border-radius: 50%;
}
.orbit-two { width: 135px; height: 135px; border-color: #bad7ef; }
.illustration-shield {
  position: relative;
  width: 94px;
  height: 106px;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 93% 16%, 88% 66%, 70% 85%, 50% 100%, 30% 85%, 12% 66%, 7% 16%);
  background: linear-gradient(145deg, #0c9b62, #087b54);
  filter: drop-shadow(0 10px 15px #0c9b6230);
}
.shield-check {
  width: 43px;
  height: 43px;
  border: 2px solid white;
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 27px;
  font-weight: 800;
}
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e3ebf3;
  border-radius: 11px;
  box-shadow: 0 8px 22px #173b5b12;
}
.floating-card-top { top: 22px; left: 13px; }
.floating-card-bottom { bottom: 20px; right: 13px; }
.float-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  background: #e1f7ed;
  color: #0a8d59;
  border-radius: 8px;
  font-size: 16px;
}
.floating-card strong, .floating-card small { display: block; }
.floating-card strong { color: #183d63; font-size: 10px; }
.floating-card small { color: #7b8798; font-size: 9px; margin-top: 2px; }
.otp-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.otp-benefits > div { display: flex; align-items: flex-start; gap: 7px; }
.benefit-check {
  flex: 0 0 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e0f6eb;
  color: #078653;
  font-size: 11px;
  font-weight: 900;
}
.otp-benefits strong, .otp-benefits small { display: block; }
.otp-benefits strong { color: #294661; font-size: 10px; }
.otp-benefits small { color: #7b8798; font-size: 9px; line-height: 1.5; margin-top: 3px; }
.otp-panel-wrap { width: 100%; max-width: 440px; justify-self: end; }
.otp-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 5px 20px;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8a97a8;
  white-space: nowrap;
}
.progress-step span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #e3eaf2;
  color: #6f8094;
  font-size: 11px;
  font-weight: 800;
}
.progress-step small { font-size: 10px; }
.progress-step.completed span { background: #dff5e9; color: #078653; }
.progress-step.current span { background: #123b68; color: #fff; box-shadow: 0 0 0 4px #e0eaf5; }
.progress-step.current small { color: #123b68; font-weight: 800; }
.progress-line { flex: 1; min-width: 10px; height: 2px; background: #dce5ef; }
.otp-card {
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 18px 48px #123b6815;
}
.otp-card .lock-icon { width: 48px; height: 48px; font-size: 23px; }
.card-eyebrow {
  display: block;
  text-align: center;
  color: #0b9560;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
  margin-top: 17px;
}
.otp-card h2 { font-size: 25px; margin-top: 7px; }
.otp-card .otp-card-subtitle {
  text-align: center;
  line-height: 1.7;
  margin: 8px auto 18px;
  max-width: 310px;
}
.sent-to {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #eef8f3;
  border: 1px solid #d6efe2;
  border-radius: 12px;
  padding: 13px 15px;
  margin: 18px 0;
}
.sent-icon {
  display: grid;
  place-items: center;
  flex: 0 0 39px;
  height: 39px;
  border-radius: 10px;
  background: #d9f2e5;
  color: #078653;
  font-size: 19px;
}
.sent-to small, .sent-to strong { display: block; }
.sent-to small { color: #648274; font-size: 9px; letter-spacing: .7px; }
.sent-to strong { color: #123b68; font-size: 18px; letter-spacing: .5px; margin-top: 2px; }
.expiry-note {
  text-align: center;
  color: #64748b;
  font-size: 11px;
  margin: 0 0 18px;
}
.expiry-note span { color: #0c9b62; font-size: 15px; margin-right: 5px; }
.otp-card label { font-size: 12px; }
.otp-card input#otp {
  height: 52px;
  font-size: 20px;
  letter-spacing: 5px;
  text-align: center;
  font-weight: 700;
  background: #fbfdff;
}
.otp-card input#otp::placeholder { color: #b4c0ce; letter-spacing: 3px; }
.otp-submit {
  min-height: 48px;
  border-radius: 9px;
  font-size: 14px;
  box-shadow: 0 6px 14px #0c9b6228;
}
.otp-submit span { font-size: 19px; transition: transform .2s; }
.otp-submit:hover span { transform: translateX(4px); }
.privacy-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid #edf1f5;
}
.privacy-icon { font-size: 17px; }
.privacy-note p { margin: 0; color: #6b7b8f; font-size: 10px; line-height: 1.7; }
.privacy-note strong { color: #294661; font-size: 11px; }
.otp-support { text-align: center; color: #7b8798; font-size: 11px; margin: 15px 0 0; }
.otp-support a { color: #087f53; font-weight: 700; text-decoration: none; }
.otp-support a:hover { text-decoration: underline; }

@media (max-width: 850px) {
  main.page { padding: 22px 22px 35px; }
  .otp-layout { grid-template-columns: 1fr; gap: 25px; max-width: 560px; padding-top: 10px; }
  .otp-welcome h1 { font-size: 38px; }
  .otp-illustration { max-width: 100%; }
  .otp-panel-wrap { justify-self: center; max-width: 480px; }
  .otp-benefits { margin-bottom: 10px; }
  body > footer { grid-template-columns: 1fr 1.5fr; }
  body > footer .scrolling-footer { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  main.page { padding: 16px 15px 28px; }
  .otp-layout { gap: 20px; }
  .otp-welcome h1 { font-size: 34px; }
  .welcome-copy { font-size: 13px; }
  .otp-illustration { height: 180px; }
  .floating-card-top { left: 8px; top: 14px; }
  .floating-card-bottom { right: 8px; bottom: 13px; }
  .otp-benefits { gap: 7px; }
  .otp-benefits > div { gap: 5px; }
  .otp-benefits strong { font-size: 9px; }
  .otp-benefits small { font-size: 8px; }
  .otp-progress { gap: 5px; }
  .progress-step { gap: 4px; }
  .progress-step small { font-size: 9px; }
  .progress-step span { width: 24px; height: 24px; }
  .otp-card { padding: 23px 19px; }
  .otp-card h2 { font-size: 23px; }
  body > footer { grid-template-columns: 1fr; padding: 22px 18px; gap: 12px; }
  body > footer .scrolling-footer { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .otp-submit span { transition: none; }
}

/* CHUNA SACCO — wider desktop layout */
@media (min-width: 1100px) {
  main.page {
    max-width: 1600px;
    padding: 35px 5vw 45px;
  }

  .otp-layout {
    max-width: 1400px;
    width: 100%;
    grid-template-columns: minmax(0, 1.1fr) minmax(440px, .9fr);
    gap: clamp(60px, 8vw, 140px);
    min-height: 620px;
    padding: 35px 0 45px;
  }

  .otp-welcome h1 {
    font-size: clamp(44px, 3.5vw, 60px);
    line-height: 1.12;
  }

  .welcome-copy {
    max-width: 600px;
    font-size: 16px;
    line-height: 1.9;
  }

  .otp-illustration {
    max-width: 580px;
    height: 250px;
    margin-top: 25px;
  }

  .otp-benefits {
    max-width: 580px;
    gap: 20px;
    margin-top: 25px;
  }

  .otp-benefits strong { font-size: 12px; }
  .otp-benefits small { font-size: 11px; }

  .otp-panel-wrap {
    max-width: 520px;
    width: 100%;
  }

  .otp-card { padding: 38px; }
  .otp-card h2 { font-size: 30px; }
  .otp-card .otp-card-subtitle { font-size: 14px; }
  .otp-card label { font-size: 14px; }
  .otp-card input#otp { height: 58px; }
  .otp-submit { min-height: 54px; font-size: 15px; }
  .sent-to { padding: 16px 18px; }
  .sent-to strong { font-size: 21px; }
  .progress-step small { font-size: 12px; }
  .progress-step span { width: 32px; height: 32px; }
  .otp-progress { margin-bottom: 25px; }
  .otp-support { font-size: 12px; }
}

@media (min-width: 1500px) {
  main.page { max-width: 1750px; }

  .otp-layout {
    max-width: 1500px;
    grid-template-columns: minmax(0, 1.15fr) minmax(480px, .85fr);
  }

  .otp-illustration { max-width: 640px; height: 270px; }
  .otp-panel-wrap { max-width: 560px; }
}


/* CHUNA SACCO administrator login — improved desktop layout */
@media (min-width: 1000px) {
  body:has(input[name="username"]) main.page,
  body:has(input[name="password"]) main.page {
    max-width: 1500px;
    padding: 50px 5vw 60px;
  }

  body:has(input[name="username"]) main.page > section,
  body:has(input[name="password"]) main.page > section {
    min-height: 600px;
    align-content: center;
  }

  body:has(input[name="username"]) .login-section,
  body:has(input[name="password"]) .login-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
    gap: clamp(55px, 8vw, 130px);
    align-items: center;
    max-width: 1250px;
    margin: 0 auto;
  }

  body:has(input[name="username"]) .login-intro,
  body:has(input[name="password"]) .login-intro {
    max-width: 620px;
  }

  body:has(input[name="username"]) .login-intro h1,
  body:has(input[name="username"]) .login-intro h2,
  body:has(input[name="password"]) .login-intro h1,
  body:has(input[name="password"]) .login-intro h2 {
    font-size: clamp(36px, 3.3vw, 50px);
    line-height: 1.2;
  }

  body:has(input[name="username"]) .login-intro p,
  body:has(input[name="password"]) .login-intro p {
    max-width: 560px;
    font-size: 15px;
    line-height: 1.9;
  }

  body:has(input[name="username"]) .login-card,
  body:has(input[name="password"]) .login-card {
    width: 100%;
    max-width: 500px;
    padding: 38px;
    justify-self: end;
    border-radius: 20px;
    box-shadow: 0 18px 48px #123b6815;
  }

  body:has(input[name="username"]) .login-card input,
  body:has(input[name="password"]) .login-card input {
    min-height: 48px;
    font-size: 15px;
  }

  body:has(input[name="username"]) .login-card button,
  body:has(input[name="password"]) .login-card button {
    min-height: 50px;
    font-size: 14px;
  }
}

/* Admin layout on tablets and mobile */
@media (max-width: 999px) {
  body:has(input[name="username"]) main.page,
  body:has(input[name="password"]) main.page {
    padding: 28px 20px 40px;
  }

  body:has(input[name="username"]) .login-card,
  body:has(input[name="password"]) .login-card {
    width: 100%;
    max-width: 480px;
    margin: 24px auto;
  }
}



/* CHUNA SACCO campus member dashboard */
.member-dashboard{color:#1d2b3d}
.dashboard-hero{display:grid;grid-template-columns:1.1fr .9fr;overflow:hidden;border-radius:20px;background:linear-gradient(120deg,#0c2948,#164d79);color:white;box-shadow:0 15px 40px #123b6818}
.dashboard-hero-copy{padding:36px;align-self:center}
.dashboard-eyebrow{font-size:10px;font-weight:850;letter-spacing:1.4px;color:#f0ce7b}
.dashboard-hero h1{font-size:clamp(30px,3.4vw,43px);line-height:1.15;margin:16px 0;color:white;overflow-wrap:anywhere}
.dashboard-hero-copy>p{font-size:14px;line-height:1.8;color:#dce9f5}
.dashboard-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.dashboard-btn{display:inline-flex;padding:12px 15px;border-radius:8px;text-decoration:none;font-size:12px;font-weight:800}
.dashboard-gold{background:#e5b957;color:#142e49}.dashboard-outline{border:1px solid #ffffff66;color:white}
.dashboard-trust{font-size:10px!important;margin-top:20px}
.dashboard-campus{min-height:300px;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;padding:22px;background:linear-gradient(#286b88,#163d65 78%,#15533e);color:white}
.campus-sun{position:absolute;right:16%;top:12%;width:90px;height:90px;border-radius:50%;background:#f1d58d;box-shadow:0 0 0 18px #f1d58d18}
.campus-building{position:absolute;bottom:72px;width:72%;height:125px;background:#dce4e5;border-top:35px solid #f3e6c8;display:flex;justify-content:space-around;padding:0 12px;box-shadow:0 12px 20px #061b2d44}
.campus-building:before{content:"";position:absolute;top:-68px;left:0;border-left:110px solid transparent;border-right:110px solid transparent;border-bottom:33px solid #f3e6c8}
.campus-building div{width:12px;height:100%;background:#b9c9d0;border-left:3px solid #f8f3e7;border-right:3px solid #f8f3e7}
.dashboard-campus>span,.dashboard-campus>small{z-index:1;align-self:flex-start}
.dashboard-campus>span{font-size:10px;font-weight:900;letter-spacing:1.6px}.dashboard-campus>small{font-size:10px;color:#d3e8e0}
.dashboard-member{display:flex;align-items:center;gap:14px;background:white;border:1px solid #e3eaf1;border-radius:13px;padding:16px 19px;margin:19px 0 30px}
.dashboard-avatar{display:grid;place-items:center;width:46px;height:46px;flex-shrink:0;border-radius:50%;background:#e8f0f8;color:#174f7b;font-size:19px;font-weight:900}
.dashboard-member>div:nth-child(2){min-width:0}.dashboard-member small,.dashboard-heading>small,.dashboard-card>small{font-size:9px;letter-spacing:1.1px;font-weight:850;color:#78899a}
.dashboard-member strong{display:block;font-size:14px;color:#173c60;overflow-wrap:anywhere}.dashboard-member p{font-size:11px;color:#697b8d;margin:3px 0 0}
.dashboard-verified{margin-left:auto;background:#e5f7ed;color:#087b4e;border-radius:25px;padding:7px 10px;font-size:10px;font-weight:850;white-space:nowrap}
.dashboard-heading{margin-bottom:15px}.dashboard-heading>small{color:#b1862e}.dashboard-heading h2{font-size:24px;color:#173c60;margin:5px 0}.dashboard-heading p{font-size:12px;color:#6b7b8d}
.dashboard-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:22px}
.dashboard-card{display:flex;flex-direction:column;align-items:flex-start;background:white;border:1px solid #e0e8f0;border-radius:13px;padding:21px;text-decoration:none;box-shadow:0 5px 20px #15395608;transition:transform .15s}
.dashboard-card:hover{transform:translateY(-2px);border-color:#c8d7e5}.dashboard-card:first-child{border-top:3px solid #d9ad4b;padding-top:19px}
.dashboard-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#edf3fa;color:#1b5681;font-size:20px;margin-bottom:15px}
.dashboard-card h3{font-size:17px;color:#173c60;margin:7px 0}.dashboard-card p{font-size:12px;line-height:1.75;color:#687a8d;margin:0 0 18px}.dashboard-card>strong{margin-top:auto;font-size:11px;color:#175581}
.dashboard-lower{display:grid;grid-template-columns:1.1fr .9fr;gap:15px;margin-bottom:8px}
.dashboard-summary,.dashboard-guidance{background:white;border:1px solid #e0e8f0;border-radius:13px;padding:22px;min-width:0}
.dashboard-summary h2,.dashboard-guidance h2{font-size:16px;color:#173c60;margin-top:0}.dashboard-summary p,.dashboard-guidance p,.dashboard-guidance li{font-size:12px;line-height:1.7;color:#65778b}
.dashboard-summary>p strong{font-size:20px;color:#173c60}.dashboard-summary h3{font-size:13px;color:#174f7b;overflow-wrap:anywhere}.dashboard-summary>a{font-size:11px;font-weight:850;color:#175581;text-decoration:none}
.dashboard-status{display:inline-block;background:#fff3d8;color:#805d16;border-radius:20px;padding:5px 9px;font-size:10px;font-weight:800}
.dashboard-guidance{background:#f7f9fc}.dashboard-guidance ul{padding-left:18px}
@media(max-width:850px){.dashboard-hero{grid-template-columns:1fr}.dashboard-hero-copy{padding:29px 25px}.dashboard-campus{min-height:245px}.dashboard-cards{grid-template-columns:1fr 1fr}.dashboard-lower{grid-template-columns:1fr}}
@media(max-width:560px){.dashboard-hero-copy{padding:25px 19px}.dashboard-hero h1{font-size:31px}.dashboard-campus{min-height:220px}.dashboard-member{padding:13px;gap:9px}.dashboard-avatar{width:39px;height:39px}.dashboard-member strong{font-size:12px}.dashboard-verified{font-size:9px;padding:6px}.dashboard-heading h2{font-size:21px}.dashboard-cards{grid-template-columns:1fr}.dashboard-card{padding:18px}.dashboard-summary,.dashboard-guidance{padding:18px}}

/* ==========================================
   CHUNA SACCO CINEMATIC DASHBOARD BACKGROUND
   ========================================== */

.dashboard-hero {
    background: #071b32;
    position: relative;
    isolation: isolate;
}

.dashboard-hero-copy {
    position: relative;
    z-index: 2;
}

.dashboard-campus {
    position: relative;
    min-height: 350px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 28px;
    background-image:
        linear-gradient(
            90deg,
            rgba(5, 23, 43, 0.12),
            rgba(5, 23, 43, 0.05)
        ),
        url("/biodata/static/images/chuna-sacco-cinematic.gif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

.dashboard-campus::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(3, 19, 36, 0.82),
        rgba(3, 19, 36, 0.08) 75%
    );
    z-index: 0;
}

.cinematic-caption {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #fff;
}

.cinematic-caption span {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
}

.cinematic-caption small {
    color: #f4e3b5;
    font-size: 11px;
}

@media (max-width: 850px) {
    .dashboard-campus {
        min-height: 270px;
        background-position: center;
    }
}

@media (max-width: 560px) {
    .dashboard-campus {
        min-height: 230px;
        padding: 20px;
    }
}

