
.ehm-auth-page{
  min-height:calc(100vh - 80px);
  display:grid;
  place-items:center;
  padding:30px 14px 110px;
  background:linear-gradient(180deg,#f8fafc 0%,#f1f8f5 100%)
}
.ehm-auth-card{
  width:min(610px,100%);
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:24px;
  padding:26px;
  box-shadow:0 22px 65px rgba(15,23,42,.10)
}
.ehm-auth-heading{text-align:center;margin-bottom:8px}
.ehm-auth-eyebrow{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background:#ecfdf5;
  color:#178a63;
  font-size:11px;
  font-weight:850;
  letter-spacing:.04em;
  text-transform:uppercase
}
.ehm-auth-card h1{font-size:30px;line-height:1.2;margin:10px 0 7px;color:#0f172a}
.ehm-auth-muted{color:#64748b;font-size:14px;margin:0}
.ehm-auth-tabs,.ehm-method-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  padding:5px;
  background:#f1f5f9;
  border-radius:14px;
  margin:17px 0
}
.ehm-auth-tabs button,.ehm-method-tabs button{
  border:0;
  border-radius:10px;
  min-height:44px;
  padding:10px;
  background:transparent;
  color:#64748b;
  font-weight:800;
  cursor:pointer
}
.ehm-auth-tabs button.active,.ehm-method-tabs button.active{
  background:#fff;
  box-shadow:0 3px 10px rgba(15,23,42,.08);
  color:#178a63
}
.ehm-auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.ehm-auth-full{grid-column:1/-1}
.ehm-auth-field{margin:11px 0}
.ehm-auth-field label{display:block;font-weight:750;color:#334155;margin-bottom:7px;font-size:13px}
.ehm-auth-field input{
  width:100%;
  height:51px;
  border:1px solid #cbd5e1;
  border-radius:12px;
  padding:0 14px;
  font-size:16px;
  color:#0f172a;
  background:#fff;
  box-sizing:border-box;
  outline:none
}
.ehm-auth-field input:focus{
  border-color:#3dc697;
  box-shadow:0 0 0 3px rgba(61,198,151,.15)
}
.ehm-verification-box{
  margin:14px 0;
  padding:15px;
  border:1px solid #cdeee2;
  border-radius:16px;
  background:#f3fcf8
}
.ehm-verification-title{display:flex;flex-direction:column;gap:3px}
.ehm-verification-title strong{color:#0f172a;font-size:14px}
.ehm-verification-title span{color:#64748b;font-size:12px}
.ehm-verification-tabs{margin:12px 0 6px;background:#e8f7f1}
.ehm-auth-row{display:grid;grid-template-columns:1fr auto;gap:8px}
.ehm-auth-btn{
  width:100%;
  border:0;
  border-radius:13px;
  padding:15px;
  background:linear-gradient(135deg,#3dc697,#22a879);
  color:#fff;
  font-weight:850;
  font-size:16px;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(34,168,121,.22)
}
.ehm-auth-btn:disabled,.ehm-auth-secondary:disabled{opacity:.65;cursor:not-allowed}
.ehm-auth-secondary{
  border:1px solid #3dc697;
  background:#fff;
  color:#178a63;
  border-radius:11px;
  padding:0 14px;
  min-width:112px;
  font-weight:800;
  cursor:pointer
}
.ehm-auth-link{
  display:block;
  margin:8px auto 0;
  border:0;
  background:transparent;
  color:#178a63;
  font-weight:750;
  padding:8px;
  cursor:pointer
}
.ehm-auth-message{
  min-height:23px;
  margin-top:9px;
  font-weight:700;
  font-size:13px;
  line-height:1.45;
  color:#b91c1c;
  text-align:center
}
.ehm-auth-message.ok{color:#047857}
.ehm-hidden{display:none!important}

@media(max-width:620px){
  .ehm-auth-page{display:block;padding:18px 12px 105px}
  .ehm-auth-card{padding:18px;border-radius:18px}
  .ehm-auth-card h1{font-size:25px}
  .ehm-auth-grid{grid-template-columns:1fr;gap:0}
  .ehm-auth-full{grid-column:auto}
  .ehm-auth-row{grid-template-columns:1fr}
  .ehm-auth-secondary{min-height:46px}
}


.ehm-required{color:#dc2626}
.ehm-optional{color:#94a3b8;font-size:11px;font-weight:650}

/* Secure SMS password-reset flow */
.ehm-reset-progress{
  display:grid;
  grid-template-columns:auto 1fr auto 1fr auto;
  align-items:center;
  gap:8px;
  margin:18px 0 22px;
}
.ehm-reset-progress>div{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  min-width:58px;
  color:#94a3b8;
}
.ehm-reset-progress>div span{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:999px;
  background:#f1f5f9;
  border:1px solid #dbe3ed;
  font-size:13px;
  font-weight:850;
}
.ehm-reset-progress>div small{
  font-size:10px;
  font-weight:750;
  text-align:center;
}
.ehm-reset-progress>i{
  display:block;
  height:2px;
  background:#e2e8f0;
  border-radius:999px;
}
.ehm-reset-progress>div.active,
.ehm-reset-progress>div.complete{color:#178a63}
.ehm-reset-progress>div.active span{
  color:#fff;
  border-color:#36be8e;
  background:#36be8e;
  box-shadow:0 0 0 5px rgba(54,190,142,.12);
}
.ehm-reset-progress>div.complete span{
  color:#178a63;
  border-color:#a9e7d1;
  background:#e9faf4;
}
.ehm-reset-info{
  display:flex;
  flex-direction:column;
  gap:5px;
  margin-bottom:14px;
  padding:14px;
  border:1px solid #cdeee2;
  border-radius:14px;
  background:#f3fcf8;
}
.ehm-reset-info strong{color:#0f172a;font-size:14px}
.ehm-reset-info span{color:#64748b;font-size:12px;line-height:1.5}
.ehm-reset-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  margin-top:6px;
}
.ehm-reset-actions .ehm-auth-link{margin:0}
.ehm-reset-back{margin-top:16px;color:#475569}
.ehm-reset-verified{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:15px;
  padding:13px 14px;
  border:1px solid #abe6d0;
  border-radius:14px;
  background:#ecfdf5;
}
.ehm-reset-verified>span{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:999px;
  color:#fff;
  background:#22a879;
  font-weight:900;
}
.ehm-reset-verified>div{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.ehm-reset-verified strong{color:#065f46;font-size:14px}
.ehm-reset-verified small{color:#477565;font-size:11px}

@media(max-width:620px){
  .ehm-reset-progress{gap:5px;margin-top:15px}
  .ehm-reset-progress>div{min-width:48px}
  .ehm-reset-progress>div span{width:31px;height:31px}
  .ehm-reset-progress>div small{font-size:9px}
  .ehm-reset-actions{flex-direction:column;gap:2px}
}
