/* Signup-only additions on top of the shared ../styles.css */

.hint {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Handle input with an inline "fang.bio/" prefix */
.handle {
  display: flex;
  align-items: stretch;
  background: #0c0c0f;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.handle:hover {
  border-color: var(--border-strong);
}

.handle:focus-within {
  border-color: var(--accent);
  background: #0e0e12;
  box-shadow: 0 0 0 3px rgba(255, 59, 92, 0.24);
}

.handle__prefix {
  display: flex;
  align-items: center;
  padding: 0 0 0 14px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 13.5px;
  color: #6f6f7d;
  white-space: nowrap;
  user-select: none;
}

.handle input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding-left: 2px;
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 14px;
}

.handle input:hover,
.handle input:focus {
  border: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
}

.field--invalid .handle {
  border-color: #ff6b6b;
}

.field--invalid .handle:focus-within {
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.handle__status {
  margin: 0;
  font-size: 12.5px;
  min-height: 0;
}

.handle__status:empty {
  display: none;
}

.handle__status--available {
  color: #4ade80;
}

.handle__status--taken {
  color: var(--danger);
}

.handle__status--checking {
  color: var(--text-muted);
}

/* Password strength meter */
.strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 2px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.strength--visible {
  opacity: 1;
}

.strength span {
  height: 3px;
  border-radius: 999px;
  background: #232329;
  transition: background 0.2s ease;
}

.strength[data-score="1"] span:nth-child(-n + 1),
.strength[data-score="2"] span:nth-child(-n + 2),
.strength[data-score="3"] span:nth-child(-n + 3),
.strength[data-score="4"] span:nth-child(-n + 4) {
  background: var(--accent);
}

.strength[data-score="3"] span:nth-child(-n + 3) {
  background: #f5b13d;
}

.strength[data-score="4"] span {
  background: #4ade80;
}

.strength__label {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  min-height: 0;
}

.strength__label:empty {
  display: none;
}

/* Inline links inside the terms checkbox */
.checkbox a {
  color: #d4d4dd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox a:hover {
  color: var(--accent);
}

.checkbox input:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 59, 92, 0.24);
}

/* Trim the gap left by the standalone terms error */
#terms-error {
  margin-top: -8px;
}
