/* Premium registration form */

.ui-auth__main {
  max-height: min(92vh, 860px);
  overflow: auto;
}

.ui-reg-form { gap: 12px; }

.ui-reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ui-field em {
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
  font-size: .78em;
}

.ui-pw { margin-top: 6px; }
.ui-pw__bar {
  height: 6px;
  border-radius: 999px;
  background: #ECEFF5;
  overflow: hidden;
}
.ui-pw__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #E11D48;
  transition: width .25s ease, background .25s ease;
}
.ui-pw.is-weak .ui-pw__bar span { width: 28%; background: #E11D48; }
.ui-pw.is-ok .ui-pw__bar span { width: 62%; background: #F59E0B; }
.ui-pw.is-strong .ui-pw__bar span { width: 100%; background: #16A34A; }
.ui-pw__hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.35;
}

.ui-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 2px;
}

.ui-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
}

.ui-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--pink);
  cursor: pointer;
}

.ui-check a {
  color: var(--pink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ui-check--soft { color: var(--muted); }

#registerNextBtn:disabled,
#registerNextBtn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.ui-field input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: rgba(225, 29, 72, .45);
}

.ui-field input.is-valid {
  border-color: rgba(22, 163, 74, .45);
}

.ui-reg-form .ui-field {
  animation: ui-reg-fade .35s var(--ease, ease);
}

@keyframes ui-reg-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

#registerStepPhone,
#registerStep2 {
  animation: ui-reg-fade .3s var(--ease, ease);
}

@media (max-width: 560px) {
  .ui-reg-grid { grid-template-columns: 1fr; }
  .ui-auth {
    width: min(100% - 16px, 880px);
    max-height: calc(100vh - 16px);
  }
  .ui-auth__main { padding: 20px 16px; }
}
