.password-control {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: .3rem;
}

.password-field {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}

.password-field input {
  width: 100%;
  padding-right: 3rem;
}

.password-field input::-ms-reveal {
  display: none;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: .65rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  padding: .35rem;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: .45rem;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.password-visibility-toggle:hover {
  color: #1d4ed8;
}

.password-visibility-toggle:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.password-visibility-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.mobile-number-control {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.mobile-country-code {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 .8rem;
  border: 1px solid #cbd5e1;
  border-right: 0;
  border-radius: .55rem 0 0 .55rem;
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
}

.mobile-number-control input {
  min-width: 0;
  flex: 1 1 auto;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.mobile-number-control input[readonly] {
  background: #f1f5f9;
  color: #475569;
  cursor: not-allowed;
}

input[type="tel"][aria-invalid="true"] {
  border-color: #dc2626;
}

@media (max-width: 480px) {
  .password-visibility-toggle {
    right: .45rem;
  }
}
