/* Signup and login. Deliberately close to the marketing site's palette so
   the handover from listiclebacklinks.com to app.listiclebacklinks.com does
   not feel like landing on a different company's website. */

:root {
  --ink: #0f1b2d;
  --text-2: #556070;
  --text-3: #6b7280;
  --bg: #fdfcfb;
  --bg-white: #ffffff;
  --border: #e8e6e4;
  --accent: #2563eb;
  --accent-light: #eef2ff;
  --green: #0a6e37;
  --green-light: #edfaf1;
  --red: #b91c26;
  --red-light: #fdeeef;
  --r: 10px;
  --r-lg: 16px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px 36px;
  box-shadow: 0 1px 3px rgba(15, 27, 45, .04), 0 12px 40px -12px rgba(15, 27, 45, .10);
  text-align: center;
}

.auth-logo {
  display: inline-block;
  margin-bottom: 28px;
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}

h1 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 10px; }

.auth-sub {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 24px;
}

/* ── outcome marks ─────────────────────────────────────────── */

.auth-mark {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 18px;
}
.auth-ok { background: var(--green-light); color: var(--green); }
.auth-fail { background: var(--red-light); color: var(--red); }

.auth-spinner {
  width: 30px; height: 30px;
  border: 3px solid var(--accent-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .auth-spinner { animation-duration: 2.4s; }
}

/* ── form ──────────────────────────────────────────────────── */

form { text-align: left; margin-top: 4px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}

input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--ink);
  margin-bottom: 16px;
}

input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.auth-hint {
  font-size: 12.5px;
  color: var(--text-3);
  margin: -8px 0 16px;
  line-height: 1.5;
}

.auth-error {
  font-size: 13.5px;
  color: var(--red);
  background: var(--red-light);
  border-radius: var(--r);
  padding: 10px 12px;
  margin-bottom: 14px;
}

.auth-btn {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

.auth-btn:hover { background: #1c2938; }
.auth-btn:disabled { opacity: .6; cursor: default; }

.auth-foot {
  font-size: 13.5px;
  color: var(--text-3);
  margin-top: 18px;
  line-height: 1.6;
}

.auth-foot a, .auth-sub a { color: var(--accent); }

.auth-ref {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
