.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
}
.auth-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 40px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.auth-logo-icon {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}
.auth-logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.auth-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 20px;
}
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 5px; }
.auth-field label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.auth-field input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 9px 12px;
  font-size: 14px;
  font-family: var(--font-ui);
  outline: none;
  transition: border-color .15s;
}
.auth-field input:focus { border-color: var(--accent); }
.auth-submit {
  margin-top: 4px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
}
.auth-submit:hover { opacity: .88; }
.auth-submit:disabled { opacity: .5; cursor: default; }
.auth-switch {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.auth-switch a {
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}
.auth-switch a:hover { text-decoration: underline; }
.auth-error {
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.4);
  border-radius: var(--radius);
  color: #fca5a5;
  padding: 9px 12px;
  font-size: 13px;
  display: none;
}
.auth-error.visible { display: block; }

/* ── Pasek siły hasła ──────────────────────────── */
.pass-strength {
  display: none;
  margin-top: 4px;
}
.pass-strength-bar {
  height: 4px;
  background: var(--bg3, rgba(255,255,255,.1));
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}
.pass-strength-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width .2s, background .2s;
}
.pass-reqs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pass-reqs li {
  font-size: 11px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.pass-reqs li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: #ef4444;
  font-size: 11px;
}
.pass-reqs li.req-ok { color: #86efac; }
.pass-reqs li.req-ok::before { content: '✓'; color: #22c55e; }
.auth-success {
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.35);
  border-radius: var(--radius);
  color: #86efac;
  padding: 9px 12px;
  font-size: 13px;
  display: none;
}
.auth-success.visible { display: block; }

/* Kod weryfikacyjny – 6 cyfr */
.code-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 8px 0;
}
.code-inputs input {
  width: 44px;
  height: 52px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.code-inputs input:focus { border-color: var(--accent); }
.resend-row {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.resend-row a { color: var(--accent); cursor: pointer; }
.resend-row a:hover { text-decoration: underline; }

/* Widoki */
.auth-view { display: none; }
.auth-view.active { display: block; }
