/* ============================================================
   wizit.pl — auth.css
   Logowanie, rejestracja, reset hasła
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f7f8fc;
  --white:       #ffffff;
  --surface:     #f0f1f8;
  --border:      #e2e4f0;
  --text:        #16163a;
  --muted:       #6b6d8a;
  --accent:      #00c49a;
  --accent-dark: #008f70;
  --accent-text: #007a60;   /* TRE-013: zielony tekst/link na jasnym tle, kontrast ok. 5:1 (#00c49a dawal 2,24:1) */
  --on-accent:   #04231c;   /* ciemny tekst na zielonym przycisku (> 8:1; bialy dawal 2,24:1) */
  --danger:      #ff4060;
  --radius:      14px;
  --shadow:      0 4px 24px rgba(22,22,58,.10);
  --shadow-lg:   0 12px 48px rgba(22,22,58,.14);
  --font-display:'Syne', sans-serif;
  --font-body:   'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

/* ── WRAPPER ── */
.auth-wrap {
  width: 100%;
  max-width: 440px;
}

/* ── CARD ── */
.auth-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; border-radius: 16px; }
}

/* ── LOGO ── */
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo a {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.auth-logo a span { color: var(--accent); }

.auth-logo-icon {
  font-size: 32px;
  margin-bottom: 6px;
}

.auth-logo-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

/* ── HEADINGS ── */
h1, .auth-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -.3px;
  text-align: center;
}

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

/* ── FORM ── */
.form-group { margin-bottom: 16px; }

.form-label, label.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-input,
input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.form-input:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,196,154,.12);
}

.form-hint { font-size: 11px; color: var(--muted); margin-top: 5px; }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 400px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ── PASSWORD STRENGTH ── */
.pass-strength {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.pass-bar {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: all .3s;
}

/* ── BUTTONS ── */
.btn-primary,
button[type="submit"],
.mf-btn,
.mform-btn {
  display: block;
  width: 100%;
  padding: 13px 20px;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
  text-align: center;
  text-decoration: none;
  margin-top: 8px;
}

.btn-primary:hover,
button[type="submit"]:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,196,154,.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── ALERTS ── */
.alert {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.alert-success {
  background: rgba(0,196,154,.08);
  border: 1px solid rgba(0,196,154,.25);
  color: var(--accent-dark);
}

.alert-error {
  background: rgba(255,64,96,.07);
  border: 1px solid rgba(255,64,96,.2);
  color: var(--danger);
}

/* ── LINKS / SWITCH ── */
.auth-switch,
.auth-switch p {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

.auth-switch a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.auth-switch a:hover { color: var(--accent-dark); }

a { color: var(--accent-text); transition: color .15s; }
a:hover { color: var(--accent-dark); }

/* ── ONBOARDING STEPS ── */
.ob-wrap { max-width: 580px; margin: 0 auto; padding: 20px 20px 60px; width: 100%; }

.ob-logo {
  text-align: center;
  margin-bottom: 32px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}

.ob-logo span { color: var(--accent); }

.ob-steps { display: flex; margin-bottom: 28px; }

.ob-step {
  flex: 1;
  padding: 10px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 3px solid var(--border);
  color: var(--muted);
  transition: all .2s;
}

.ob-step.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.ob-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.ob-card h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.ob-card p { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

/* ── ONBOARDING: services + hours ── */
.svc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
}

.svc-name { font-weight: 600; font-size: 13px; }
.svc-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }

.hour-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.hour-row:last-of-type { border-bottom: none; }
.day-lbl { width: 100px; font-size: 13px; font-weight: 600; flex-shrink: 0; }

/* ── ONBOARDING: plan cards ── */
.plan-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}

.plan-card:hover { border-color: var(--accent); }
.plan-card.sel, .plan-card.pop { border-color: var(--accent); background: rgba(0,196,154,.04); }

.pc-name { font-family: var(--font-display); font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.pc-price { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--accent); }
.pc-per { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.pc-feat { font-size: 12px; color: var(--muted); line-height: 1.7; text-align: left; }

/* .form-select — przeniesione z rateit/assets/css/auth.css
   (uzywane przez formularze wizit, brakowalo w lokalnym arkuszu) */
.form-select {
  width: 100%;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}
