/* ── Auth pages (login, register, reset) ── */

.auth-wrap {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px var(--spacing);
}

.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 32px;
}

.auth-header {
  margin-bottom: 24px;
  text-align: center;
}

.auth-title {
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ── Eye toggle ── */
.input-eye-wrap {
  position: relative;
}

.input-eye-wrap input {
  padding-right: 44px;
}

.eye-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
}

.eye-toggle svg {
  width: 18px;
  height: 18px;
}

.eye-toggle:hover { color: var(--color-primary); }

/* ── Password strength ── */
.password-strength {
  margin-top: 6px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-border);
  overflow: hidden;
  transition: all var(--transition);
}

.password-strength::after {
  content: '';
  display: block;
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}

.password-strength[data-level="1"]::after { width: 25%; background: var(--color-error); }
.password-strength[data-level="2"]::after { width: 50%; background: var(--color-warning); }
.password-strength[data-level="3"]::after { width: 75%; background: #f0c040; }
.password-strength[data-level="4"]::after { width: 100%; background: var(--color-success); }

/* ── Checkbox ── */
.form-check { margin-bottom: 20px; }

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
}

.check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}

/* ── Auth row (remember + forgot) ── */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-link {
  font-size: 13px;
  color: var(--color-text-muted);
}
.auth-link:hover { color: var(--color-primary); }

/* ── Switch link ── */
.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ── Required asterisk ── */
.required {
  color: var(--color-error);
  margin-left: 2px;
}