/* Canonical password onboarding presentation. */
.estel-password-control {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.estel-password-control > input {
  width: 100%;
  padding-right: 46px !important;
}
.estel-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #777;
  cursor: pointer;
  transition:
    background 0.16s ease,
    color 0.16s ease;
}
.estel-password-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.estel-password-toggle:focus-visible {
  outline: 2px solid #ffe500;
  outline-offset: 1px;
}
.estel-password-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

.estel-password-onboarding {
  display: grid;
  gap: 4px;
}
.estel-password-onboarding > p {
  margin: 0 0 14px;
  color: var(--muted, #aaa);
  line-height: 1.5;
}
.estel-account-chip {
  display: grid;
  gap: 2px;
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 229, 0, 0.24);
  border-radius: 12px;
  background: rgba(255, 229, 0, 0.06);
}
.estel-account-chip span {
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9d9d9d;
  font-weight: 700;
}
.estel-account-chip strong {
  font-size: 14px;
  line-height: 1.35;
  color: #fff;
  overflow-wrap: anywhere;
}
.estel-password-help {
  margin: -2px 0 8px;
}
.estel-password-meter {
  height: 5px;
  border-radius: 999px;
  background: #2a2a2a;
  overflow: hidden;
}
.estel-password-meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #ffe500;
  transition:
    width 0.18s ease,
    filter 0.18s ease;
}
.estel-password-meter i[data-score="1"] {
  filter: brightness(0.72);
}
.estel-password-meter i[data-score="2"] {
  filter: brightness(0.84);
}
.estel-password-meter i[data-score="3"] {
  filter: brightness(0.94);
}
.estel-password-meter i[data-score="4"] {
  filter: brightness(1.05);
}
.estel-password-strength {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  margin-top: 7px;
  font-size: 12px;
  color: #878787;
}
.estel-password-strength strong {
  color: #d7d7d7;
  font-weight: 700;
  text-align: right;
}
.estel-password-rules {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.35;
  color: #8f8f8f;
}
.estel-password-rules li {
  position: relative;
  padding-left: 20px;
}
.estel-password-rules li:before {
  content: "○";
  position: absolute;
  left: 1px;
  top: 0;
  color: #777;
  font-weight: 800;
}
.estel-password-rules li.is-ok {
  color: #d9d9d9;
}
.estel-password-rules li.is-ok:before {
  content: "✓";
  color: #ffe500;
}
.estel-password-onboarding .sheet-actions {
  margin-top: 8px;
}
.estel-password-onboarding .sheet-actions .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: saturate(0.45);
}

@media (max-width: 600px) {
  .estel-password-toggle {
    right: 6px;
    width: 36px;
    height: 36px;
  }
  .estel-account-chip {
    padding: 10px 12px;
  }
  .estel-password-rules {
    font-size: 11.5px;
  }
}
