textarea{display:block;width:100%;min-height:110px;padding:.6rem;border:1px solid #a3b5c8;border-radius:6px;background:#fff;color:#17324a;font:inherit;resize:vertical}
textarea:focus-visible{outline:3px solid #de7db0;outline-offset:3px}

.password-strength{
  display:grid;
  gap:.35rem;
  margin-top:.45rem;
  color:#53677d;
  font-size:.82rem;
  font-weight:600;
}

.password-strength-track{
  display:block;
  height:.42rem;
  overflow:hidden;
  border-radius:999px;
  background:#dce5ed;
}

.password-strength-bar{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:#8797a8;
  transition:width .2s ease,background-color .2s ease;
}

.password-strength[data-score="1"] .password-strength-bar{width:25%;background:#c33b45}
.password-strength[data-score="2"] .password-strength-bar{width:50%;background:#d68416}
.password-strength[data-score="3"] .password-strength-bar{width:75%;background:#168273}
.password-strength[data-score="4"] .password-strength-bar{width:100%;background:#176454}

body.recovery-page{
  background: linear-gradient(180deg, #edf5ff 0%, #f7fafc 32%, #eff8f7 100%);
  color: #17324a;
}

body.recovery-page header{
  background: rgba(11,61,145,.96);
  border-bottom: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 12px 30px rgba(11,61,145,.12);
}

body.recovery-page .recovery-main{
  max-width: 980px;
  margin: 3rem auto 2rem;
  padding: 0 1rem;
}

body.recovery-page .recovery-header{
  text-align: center;
  margin-bottom: 1.5rem;
}

body.recovery-page .eyebrow{
  margin: 0 0 .5rem;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #176454;
  font-weight: 700;
}

body.recovery-page h1{
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.04em;
}

body.recovery-page #identity{
  margin: .7rem auto 0;
  max-width: 620px;
  color: #53677d;
  font-size: 1.05rem;
}

body.recovery-page #notice{
  max-width: 980px;
  margin: 0 auto 1.25rem;
  border-left: 4px solid #00b4e6;
  background: rgba(255,255,255,.8);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(23,50,74,.06);
}

body.recovery-page .auth-layout{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}

body.recovery-page .auth-shell,
body.recovery-page form[data-action]{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(125,150,177,.35);
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(23,50,74,.08);
  padding: 1.4rem;
}

body.recovery-page .button-primary-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b3d91 0%, #176454 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(11,61,145,.18);
  margin-top: .75rem;
}

body.recovery-page .auth-shell h2,
body.recovery-page form h2{
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.45rem;
  color: #17324a;
}

body.recovery-page label{
  display: block;
  margin: .7rem 0 .9rem;
  font-weight: 700;
  color: #1f3855;
}

body.recovery-page input,
body.recovery-page select,
body.recovery-page button{
  border-radius: 12px;
  min-height: 46px;
  font: inherit;
}

body.recovery-page input,
body.recovery-page select{
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid #b7c7d7;
  background: #fff;
  color: #17324a;
  transition: border-color .2s ease, box-shadow .2s ease;
}

body.recovery-page input:focus,
body.recovery-page select:focus{
  border-color: #00b4e6;
  box-shadow: 0 0 0 4px rgba(0,180,230,.12);
  outline: none;
}

body.recovery-page button{
  width: 100%;
  border: none;
  background: linear-gradient(135deg, #0b3d91 0%, #176454 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 12px 24px rgba(11,61,145,.18);
}

body.recovery-page button:hover{
  transform: translateY(-1px);
}

body.recovery-page button:focus-visible,
body.recovery-page a:focus-visible,
body.recovery-page summary:focus-visible{
  outline: 3px solid rgba(222,125,176,.75);
  outline-offset: 3px;
}

body.recovery-page .recovery-footer{
  text-align: center;
  padding: 1.6rem 1rem 2.5rem;
  color: #53677d;
}

@media (max-width: 640px){
  body.recovery-page .recovery-main{
    margin-top: 2rem;
  }

  body.recovery-page .auth-shell,
  body.recovery-page form[data-action]{
    padding: 1.1rem;
  }
}
