/* Auth screens — login & register */

body:has(.auth-wrap) {
  min-height: 100vh;
  background: radial-gradient(900px 500px at 50% -10%, rgba(16, 185, 129, 0.10), transparent 60%),
              var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-wrap {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* ── Brand lockup ─────────────────────────────────────────────────────────── */

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */

.auth-card {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px 40px;
  box-shadow: var(--shadow-modal);
}

.auth-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.auth-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ── Form fields ──────────────────────────────────────────────────────────── */

.field-group {
  margin-bottom: 20px;
}

.field-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 7px;
}

.field-error {
  font-size: 12px;
  color: var(--signal-short);
  margin-top: 4px;
  display: block;
}

/* Password toggle wrapper */
.password-wrap {
  position: relative;
}

.password-wrap .input-base {
  padding-right: 40px;
}

.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  padding: 4px;
  line-height: 0;
}

.pw-toggle:hover {
  color: #fff;
}

/* Remember / forgot row */
.field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-body);
  cursor: pointer;
}

.link-muted {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}

.link-muted:hover {
  color: var(--green);
}

/* Submit button */
.auth-submit {
  width: 100%;
  margin-top: 4px;
}

/* ── Divider ──────────────────────────────────────────────────────────────── */

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
  margin: 20px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Social buttons ───────────────────────────────────────────────────────── */

.social-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--r-input);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text-body);
  background: var(--bg-surface-2);
  transition: background 0.15s;
}

.social-btn:hover {
  background: var(--border);
}

.social-btn--telegram {
  border-color: #2b5278;
}

.social-btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.social-btn--disabled:hover {
  background: var(--bg-surface-2);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.auth-footer {
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 20px;
}

.auth-footer a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}

.legal-line {
  font-size: 11.5px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 12px;
}

.legal-line a {
  color: var(--text-dim);
}

/* ── Password strength meter ──────────────────────────────────────────────── */

.strength-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.strength-bars {
  display: flex;
  gap: 4px;
}

.strength-bar {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--bg-surface-2);
  transition: background 0.2s;
}

.strength-bar.weak   { background: var(--signal-short); }
.strength-bar.fair   { background: var(--gold); }
.strength-bar.good   { background: var(--green); }
.strength-bar.strong { background: var(--green-light); }

.strength-label {
  font-size: 12px;
  color: var(--text-dim);
}

/* Input error state */
.input-base.error {
  border-color: var(--signal-short);
}

/* Submit disabled state */
.auth-submit:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ── Auth-scoped size overrides (bigger than global defaults) ── */
.auth-card .input-base {
  height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

.auth-card .btn-primary,
.auth-card .btn-outline {
  height: 40px;
  padding: 0 20px;
  font-size: 15px;
}

.auth-submit {
  height: 40px;
  padding: 0 20px;
  font-size: 15px;
}
