
.password-requirements{
  margin:8px 0 12px;
  padding:12px 14px;
  border:1px solid #27445f;
  border-radius:8px;
  background:#06101a;
}
.password-requirements strong{display:block;margin-bottom:8px}
.password-requirements ul{margin:0;padding-left:0;list-style:none}
.password-requirements li{margin:4px 0;color:#c6d4e2}
.password-requirements li.valid{color:#72ed91}
.password-requirements li.invalid{color:#ff9b9b}
.rule-mark{display:inline-block;width:18px;font-weight:bold}
.field-message{display:block;margin:-6px 0 12px;font-size:13px}
.field-message.error{color:#ff9b9b}
.field-message.success{color:#72ed91}
.password-strength-line{display:block;margin:-6px 0 10px;color:#9bb0c4;font-size:13px}
.password-tools{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 14px}
.password-tools button{margin:0}


/* v6.28.19 contrast bridge */
.field-message,
.password-strength-line {
  line-height:1.45;
}

.password-requirements .rule-mark {
  color:inherit;
  font-weight:900;
}


/* v6.28.22 password helper layout */
.password-component{
  display:block;
  width:100%;
  margin:0 0 18px;
}

.password-component .password-field-wrap{
  display:flex;
  width:100%;
  align-items:stretch;
  gap:8px;
  margin:0;
}

.password-component .password-field-wrap input{
  flex:1 1 auto;
  min-width:0;
}

.password-component .password-caps,
.password-component .field-message,
.password-component .password-requirements,
.password-component .password-strength-line,
.password-component .password-tools{
  width:100%;
  clear:both;
  box-sizing:border-box;
}

.password-component .password-caps,
.password-component .field-message{
  margin:3px 0 8px !important;
}

.password-component .password-requirements,
.password-component .password-strength-line{
  margin:8px 0 !important;
}

.password-component .password-tools{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:8px 0 0 !important;
}

.password-component .password-tools button{
  width:auto;
  margin:0;
}

.password-confirm-component{
  margin-bottom:16px;
}

@media(max-width:560px){
  .password-component .password-tools{
    display:grid;
    grid-template-columns:1fr;
  }

  .password-component .password-tools button{
    width:100%;
  }
}


/* v6.28.23 compact password strength and tools */
.password-component .password-strength-line{
  display:inline-block;
  width:auto;
  max-width:100%;
  padding:4px 8px !important;
  margin:6px 0 6px !important;
  font-size:12px !important;
  line-height:1.3;
  border-width:1px !important;
  border-radius:5px !important;
}

.password-component .password-tools{
  display:block;
  width:100%;
  margin:0 0 8px !important;
}

.password-component .password-tools button{
  width:auto;
  min-height:36px;
  padding:7px 11px;
  margin:0;
  font-size:13px;
}

@media(max-width:560px){
  .password-component .password-tools{
    display:block;
  }

  .password-component .password-tools button{
    width:100%;
  }
}


/* v6.28.24 colored password strength row */
.password-strength-row{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  margin:7px 0 9px;
}

.password-strength-row .password-strength-line{
  display:inline-flex;
  align-items:center;
  width:auto;
  min-height:36px;
  padding:7px 10px !important;
  margin:0 !important;
  border:2px solid transparent !important;
  border-radius:7px !important;
  font-size:13px !important;
  line-height:1.2;
  font-weight:800;
  white-space:nowrap;
}

.password-strength-row .password-generate{
  width:auto;
  min-width:170px;
  height:36px !important;
  min-height:36px !important;
  max-height:36px !important;
  padding:0 14px !important;
  margin:0 !important;
  font-size:13px;
  white-space:nowrap;
}

/* Strength color scale */
.password-strength-line[data-score="0"],
.password-strength-line[data-score="1"]{
  color:#ffffff !important;
  background:#8f1d2c !important;
  border-color:#ff9caa !important;
}

.password-strength-line[data-score="2"]{
  color:#241600 !important;
  background:#f5a623 !important;
  border-color:#ffd48a !important;
}

.password-strength-line[data-score="3"]{
  color:#102035 !important;
  background:#78bfff !important;
  border-color:#c6e5ff !important;
}

.password-strength-line[data-score="4"]{
  color:#082112 !important;
  background:#73d996 !important;
  border-color:#c6f5d5 !important;
}

.password-strength-line[data-score="5"],
.password-strength-line[data-score="6"]{
  color:#ffffff !important;
  background:#16834b !important;
  border-color:#91e8b6 !important;
}

@media(max-width:600px){
  .password-strength-row{
    align-items:stretch;
    flex-direction:column;
  }

  .password-strength-row .password-strength-line,
  .password-strength-row .password-generate{
    width:100%;
  }
}


/* v6.28.25 verified password-strength colors */
.password-strength-row .password-strength-line{
  transition:color .18s ease,background-color .18s ease,border-color .18s ease;
}
.password-strength-row .password-strength-line[data-score="0"],
.password-strength-row .password-strength-line[data-score="1"]{
  color:#fff!important;background-color:#8f1d2c!important;border-color:#ff9caa!important
}
.password-strength-row .password-strength-line[data-score="2"]{
  color:#241600!important;background-color:#f5a623!important;border-color:#ffd48a!important
}
.password-strength-row .password-strength-line[data-score="3"]{
  color:#102035!important;background-color:#78bfff!important;border-color:#c6e5ff!important
}
.password-strength-row .password-strength-line[data-score="4"]{
  color:#082112!important;background-color:#73d996!important;border-color:#c6f5d5!important
}
.password-strength-row .password-strength-line[data-score="5"]{
  color:#fff!important;background-color:#16834b!important;border-color:#91e8b6!important
}
