/* Auth pages (login / register). Self-contained — only vars.css is also loaded. */

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

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgba(255,79,154,.05) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 6px 0 rgba(61,44,58,.08);
  padding: 28px 26px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  transform: rotate(-2deg);
  margin-bottom: 18px;
  -webkit-user-select: none;
  user-select: none;
}
.logo .kicker {
  font-family: 'Baloo 2', cursive; font-size: 11px; font-weight: 700;
  letter-spacing: 3.5px; text-transform: uppercase; color: var(--muted); margin-left: 3px;
}
.logo .main { font-family: 'Baloo 2', cursive; font-size: 28px; font-weight: 800; letter-spacing: -.5px; color: var(--text); }
.logo .main .dot { color: var(--accent); }

.auth-title { font-family: 'Baloo 2', cursive; font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.auth-sub { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 18px; }

.auth-error {
  background: var(--accent-soft);
  border: 2px solid var(--accent-mid);
  color: var(--accent-deep);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.auth-form { display: flex; flex-direction: column; }

.field-label {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted); margin: 14px 0 7px;
}

.text-input {
  width: 100%; font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 700; color: var(--text);
  background: var(--bg); border: 2px solid var(--border); border-radius: 14px; padding: 11px 14px;
}
.text-input:focus { outline: none; border-color: var(--accent-mid); }

/* Password show/hide toggle (injected by auth.js) */
.input-wrap { position: relative; display: block; }
.text-input.has-toggle { padding-right: 46px; }
.pw-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--muted); cursor: pointer; border-radius: 9px;
  -webkit-tap-highlight-color: transparent; transition: color .15s, transform .1s;
}
.pw-toggle:hover { color: var(--accent-deep); }
.pw-toggle:active { transform: translateY(-50%) scale(.88); }
.pw-toggle svg { display: block; }

.auth-btn {
  margin-top: 22px;
  width: 100%;
  border: 2px solid var(--accent-deep);
  background: var(--accent);
  color: #fff;
  border-radius: 16px;
  padding: 13px;
  font-family: 'Baloo 2', cursive;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--accent-deep);
  transition: transform .12s;
}
.auth-btn:active { transform: scale(.97) translateY(2px); box-shadow: 0 1px 0 var(--accent-deep); }

.auth-alt { margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; }
.auth-alt a { color: var(--accent); text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }
