/* =========================================================
   Humana Access – Spending Account Portal
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

:root{
  --green:#2e6b30;
  --green-dark:#245624;
  --maroon:#850025;
  --maroon-dark:#70001e;
  --grey-btn:#757575;
  --grey-btn-dark:#666;
  --bar-grey:#e2e2e2;
  --footer-bg:#5a5a5a;
  --link-green:#2e6b30;
  --heading-green:#5a8a5c;
  --heading-green-bold:#2e6b30;
  --step-navy:#2b3a52;
  --step-grey:#a9a9a9;
  --asterisk:#c87c2a;
  --page-title:#999;
  --ink:#4a4a4a;
  --ink-soft:#6a6a6a;
  --input-border:#bbb;
  --res-text:#4a4a4a;
  --res-icon:#2e6b30;
}

*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:'Open Sans','Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);
  font-size:13px;
  line-height:1.5;
  background:#fff;
  -webkit-font-smoothing:antialiased;
  display:flex;
  flex-direction:column;
  min-height:100vh;
}
a{color:var(--link-green)}
img{max-width:100%}

/* ================================================================
   HEADER
   ================================================================ */
.site-header{
  display:flex;
  align-items:center;
  gap:18px;
  padding:0 0 0 24px;
  background:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,0.12);
  position:relative;
  z-index:30;
  height:62px;
}
.site-header .brand-text{
  font-size:28px;
  font-weight:700;
  color:var(--green);
  text-decoration:none;
  letter-spacing:-.3px;
  white-space:nowrap;
  flex-shrink:0;
}

.site-header .page-title{
  font-size:24px;
  font-weight:300;
  color:var(--page-title);
  letter-spacing:.2px;
  margin-left:6px;
  white-space:nowrap;
}

.header-actions{margin-left:auto;display:flex;align-items:center;gap:8px;padding-right:16px;flex-shrink:0}

.btn-auth{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 24px;
  color:#fff;
  text-decoration:none;
  text-transform:uppercase;
  letter-spacing:.8px;
  font-size:12.5px;
  font-weight:600;
  font-family:inherit;
  border:none;
  cursor:pointer;
  white-space:nowrap;
}
.btn-auth svg{width:18px;height:18px;flex-shrink:0}
.btn-auth.signin{background:var(--maroon)}
.btn-auth.signin:hover{background:var(--grey-btn)}
.btn-auth.register{background:var(--grey-btn)}
.btn-auth.register:hover{background:var(--grey-btn-dark)}

/* ================================================================
   MAIN
   ================================================================ */
main{flex:1 0 auto}

/* ================================================================
   HOMEPAGE – HERO (carousel)
   ================================================================ */
.hero{padding:28px 20px 0}
.hero-inner{max-width:1140px;margin:0 auto}

.carousel{
  position:relative;
  width:100%;
  overflow:hidden;
  background:#e8e8e8;
}
.carousel .slides{position:relative;width:100%;aspect-ratio:3.4/1}
.carousel .slide{
  position:absolute;inset:0;
  opacity:0;
  transition:opacity 1s ease;
}
.carousel .slide.is-active{opacity:1}
.carousel .slide img{width:100%;height:100%;object-fit:cover;display:block}

.carousel-arrow{
  position:absolute;top:50%;transform:translateY(-50%);
  background:none;border:none;cursor:pointer;
  color:#2f6fbf;padding:6px;line-height:0;z-index:2;
}
.carousel-arrow svg{width:22px;height:44px;display:block}
.carousel-arrow.prev{left:12px}
.carousel-arrow.next{right:12px}

/* ================================================================
   HOMEPAGE – Debit Card Section
   ================================================================ */
.debit-card-section{
  max-width:480px;
  margin:60px 10% 0 auto;
  text-align:center;
  padding:0 20px;
}
.debit-card-section img{
  max-width:100%;
  width:100%;
  display:block;
  margin:0 auto 18px;
}
.debit-card-section .card-desc{
  color:#666;
  font-size:16px;
  line-height:1.6;
  margin:0 0 14px;
}
.debit-card-section .card-note{
  color:red;
  font-size:15px;
  line-height:1.5;
  font-weight:600;
}

/* ================================================================
   HOMEPAGE – Resources
   ================================================================ */
.resources{padding:60px 20px 70px;max-width:1180px;margin:0 auto}
.resources-box{
  border:1px solid #dcdcdc;
  width:100%;max-width:750px;
  padding:32px 38px 38px;
}
.resources h2{
  margin:0 0 12px;
  font-weight:300;
  font-size:30px;
  color:var(--heading-green);
  letter-spacing:.2px;
}
.resources h2 b{font-weight:700;color:var(--heading-green-bold)}
.resources .welcome-text{
  color:#666;
  font-size:13px;
  line-height:1.65;
  margin:0 0 24px;
}

.res-grid{display:grid;grid-template-columns:repeat(3,1fr)}
.res-item{
  display:flex;align-items:center;gap:14px;
  padding:20px 14px;
  text-decoration:none;
  cursor:pointer;
  transition:color .2s;
}
.res-item:nth-child(-n+3){border-bottom:1px solid #e4e4e4}
.res-item:not(:nth-child(3n)){border-right:1px solid #e4e4e4}
.res-item svg{width:48px;height:48px;color:var(--res-icon);flex-shrink:0;stroke-width:1.3;transition:color .2s}
.res-item span{font-size:17px;font-weight:600;color:var(--res-text);line-height:1.3;max-width:130px;transition:color .2s}

.res-item:hover svg{color:var(--green-dark)}
.res-item:hover span{color:var(--green-dark)}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer{
  flex-shrink:0;
  background:var(--footer-bg);
  padding:28px 20px 22px;
  text-align:center;
  color:#ccc;
}
.site-footer nav a{
  color:#fff;text-transform:uppercase;text-decoration:none;
  font-size:12px;letter-spacing:.6px;margin:0 18px;
}
.site-footer nav a:hover{text-decoration:underline}
.site-footer .copy{margin-top:12px;font-size:11px;color:#bbb}

/* ================================================================
   LOGIN
   ================================================================ */
.auth-wrap{
  max-width:540px;
  margin:40px 0 80px 120px;
  padding:0 40px;
  width:100%;
}
.auth-lock{text-align:center;margin-bottom:10px}
.auth-lock svg{width:44px;height:44px;color:#5a5a5a;stroke-width:1.4;display:inline-block}
.auth-note{
  text-align:center;color:#888;margin:0 0 24px;
  line-height:1.55;font-size:12px;
}
.auth-h{text-align:center;font-weight:700;color:#333;font-size:16px;margin-bottom:26px}

.auth-form-area{max-width:420px}

.field{margin-bottom:4px}
.field label{display:block;color:#555;margin-bottom:5px;font-size:13px}
.field label i{color:var(--asterisk);font-style:normal;margin-left:2px}
.field input{
  width:100%;border:1px solid #444;background:#fff;
  padding:9px 10px;font-size:13px;outline:none;font-family:inherit;
}
.field input:focus{border-color:#000}
.field-help{font-size:12px;color:#666;margin:7px 0 20px}
.field-help a{color:var(--link-green)}

.btn-lg{
  display:inline-flex;align-items:center;gap:10px;
  padding:10px 24px;border:none;
  color:#fff;text-transform:uppercase;letter-spacing:.9px;
  font-size:13px;font-weight:600;cursor:pointer;
  font-family:inherit;text-decoration:none;
}
.btn-lg svg{width:18px;height:18px}
.btn-lg.maroon{background:var(--maroon)}
.btn-lg.maroon:hover{background:var(--maroon-dark)}
.btn-lg.signin:hover{background:var(--grey-btn)}
.btn-lg.grey{background:var(--grey-btn)}
.btn-lg.grey:hover{background:var(--grey-btn-dark)}

.auth-reg{color:#7a7a7a;margin:22px 0 10px;font-size:13px}

/* ================================================================
   REGISTRATION
   ================================================================ */
.reg-wrap{max-width:840px;margin:36px auto 80px;padding:0 20px;text-align:center;width:100%}
.steps{display:flex;justify-content:center}
.step{
  position:relative;
  background:var(--step-grey);
  color:#fff;font-size:12px;font-weight:700;
  padding:7px 20px 7px 26px;
  margin-left:-10px;
  clip-path:polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%);
}
.step:first-child{
  margin-left:0;padding-left:18px;
  clip-path:polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}
.step.active{background:var(--step-navy)}

.reg-sub{margin:16px 0 6px;color:#555;font-size:13px}
.reg-lead{margin:0 0 36px;color:#555;font-size:13px}

.reg-form{display:inline-block;text-align:left}
.reg-row{display:flex;align-items:center;gap:22px;margin-bottom:18px}
.reg-row label{width:100px;color:#555;text-align:left;font-size:13px}
.reg-row label i{color:var(--asterisk);font-style:normal;margin-left:2px}
.reg-row input{
  width:220px;border:1px solid var(--input-border);background:#fff;
  padding:9px 10px;font-size:13px;outline:none;font-family:inherit;
}
.reg-row input:focus{border-color:#888}

.reg-actions{margin-top:34px;display:flex;gap:12px;justify-content:center}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width:900px){
  .site-header{flex-wrap:wrap;height:auto;padding:8px 12px;gap:8px}
  .site-header .brand-text{font-size:22px}
  .site-header .page-title{width:100%;margin:0;font-size:20px}
  .header-actions{width:100%;padding-right:0}
  .btn-auth{flex:1;justify-content:center;padding:10px 8px}
  .hero{padding:18px 12px 0}
  .carousel .slides{aspect-ratio:2.8/1}
  .carousel{margin:0 auto}
  .debit-card-section{margin:30px auto 0;max-width:420px}
  .resources{padding:36px 12px 48px}
  .resources-box{max-width:100%;padding:22px 16px 26px}
  .resources h2{font-size:22px}
  .res-grid{grid-template-columns:1fr 1fr}
  .res-item{border-right:none!important}
  .res-item:nth-child(-n+4){border-bottom:1px solid #e4e4e4}
  .reg-row{flex-direction:column;align-items:flex-start;gap:6px}
  .reg-row input{width:100%}
  .reg-form{display:block;padding:0 12px}
  .auth-wrap{margin:30px auto 60px;max-width:100%;padding:0 20px}
  .auth-note br{display:none}
  .step{font-size:11px;padding:6px 16px 6px 22px}
  .step:first-child{padding-left:14px}
}

@media (max-width:480px){
  .site-header{padding:8px 10px;gap:6px}
  .site-header .brand-text{font-size:19px}
  .site-header .page-title{font-size:17px}
  .header-actions{gap:6px}
  .btn-auth{font-size:11px;padding:9px 6px;letter-spacing:.5px}
  .btn-auth svg{width:15px;height:15px}
  .hero{padding:12px 8px 0}
  .carousel .slides{aspect-ratio:1.8/1}
  .carousel-arrow svg{width:16px;height:32px}
  .carousel-arrow.prev{left:6px}
  .carousel-arrow.next{right:6px}
  .debit-card-section{margin:24px auto 0;max-width:360px}
  .debit-card-section img{max-width:100%}
  .resources{padding:28px 10px 36px}
  .resources-box{padding:18px 14px 22px}
  .resources h2{font-size:19px}
  .resources .welcome-text{font-size:12px}
  .res-grid{grid-template-columns:1fr}
  .res-item{padding:14px 10px;gap:10px}
  .res-item svg{width:38px;height:38px}
  .res-item span{font-size:14px;max-width:none}
  .auth-wrap{margin:24px auto 50px;padding:0 16px}
  .auth-lock svg{width:36px;height:36px}
  .auth-note{font-size:11.5px}
  .auth-h{font-size:15px;margin-bottom:20px}
  .auth-form-area{max-width:100%}
  .field input{padding:10px;font-size:14px}
  .btn-lg{padding:10px 20px;font-size:12px;width:100%;justify-content:center}
  .auth-reg{font-size:12.5px}
  .reg-wrap{margin:24px auto 50px;padding:0 16px}
  .steps{flex-wrap:wrap;gap:4px;justify-content:center}
  .step{font-size:10px;padding:5px 12px 5px 18px;margin-left:-6px}
  .step:first-child{padding-left:10px;margin-left:0}
  .reg-sub{font-size:12px}
  .reg-lead{font-size:12px;margin-bottom:24px}
  .reg-actions{flex-direction:column;gap:10px}
  .reg-actions .btn-lg{width:100%;justify-content:center}
  .site-footer{padding:20px 12px 16px}
  .site-footer nav a{font-size:10.5px;margin:0 8px;letter-spacing:.4px}
  .site-footer .copy{font-size:10px}
}
