/*
 * stitch-auth.css — Standalone page styles (login, setup_kite).
 * These pages don't extend base.html, so they load this directly.
 */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --st-primary:               #24389c;
  --st-primary-container:     #3f51b5;
  --st-on-primary:            #ffffff;
  --st-on-primary-container:  #cacfff;
  --st-secondary:             #006c49;
  --st-background:            #faf8ff;
  --st-surface-container-lowest: #ffffff;
  --st-surface-container-low: #f2f3ff;
  --st-surface-container:     #eaedff;
  --st-on-surface:            #131b2e;
  --st-on-surface-variant:    #454652;
  --st-outline-variant:       #c5c5d4;
  --st-error:                 #ba1a1a;
  --st-tertiary:              #8a0027;
  --st-shadow: 0px 24px 48px rgba(19, 27, 46, 0.07);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(145deg, #f2f3ff 0%, #eaedff 60%, #e2e7ff 100%);
  min-height: 100vh;
  color: var(--st-on-surface);
  -webkit-font-smoothing: antialiased;
}

/* ── Top nav strip ───────────────────────────────────────────────────────── */
.auth-nav {
  background: var(--st-surface-container-lowest);
  padding: 0.625rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 0 rgba(197, 197, 212, 0.25);
}

.auth-nav img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.auth-nav .nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.auth-nav .nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--st-on-surface-variant);
  text-decoration: none;
  transition: color 0.15s;
}

.auth-nav .nav-links a:hover { color: var(--st-primary); }

.auth-nav .nav-links a.logout { color: var(--st-tertiary); }
.auth-nav .nav-links a.logout:hover { color: #720020; }

/* ── Auth card ───────────────────────────────────────────────────────────── */
.auth-card {
  background: var(--st-surface-container-lowest);
  border-radius: 1.5rem;
  box-shadow: var(--st-shadow);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header img {
  height: 100px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.auth-header h1 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--st-on-surface);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.auth-header p {
  font-size: 0.875rem;
  color: var(--st-on-surface-variant);
  margin: 0;
}

/* ── Card header strip (for setup_kite card-header) ────────────────────── */
.card-header-stitch {
  background: var(--st-surface-container-low);
  padding: 1rem 1.5rem;
  border-radius: 1.5rem 1.5rem 0 0;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--st-on-surface);
}

/* ── Form ────────────────────────────────────────────────────────────────── */
.form-label {
  color: var(--st-on-surface-variant);
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
}

.form-control,
.form-select {
  background: var(--st-surface-container-low);
  border: none;
  border-radius: 0.25rem;
  color: var(--st-on-surface);
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  transition: box-shadow 0.15s, background 0.15s;
  box-shadow: inset 0 0 0 1px rgba(197, 197, 212, 0.5);
}

.form-control::placeholder { color: var(--st-on-surface-variant); opacity: 0.55; }

.form-control:focus,
.form-select:focus {
  background: var(--st-surface-container-lowest);
  box-shadow: inset 0 0 0 2px rgba(36, 56, 156, 0.4);
  outline: none;
  color: var(--st-on-surface);
}

/* ── Button ──────────────────────────────────────────────────────────────── */
.btn {
  border-radius: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
  padding: 0.6875rem 1.25rem;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--st-primary);
  border-color: var(--st-primary);
  color: var(--st-on-primary);
}

.btn-primary:hover {
  background: var(--st-primary-container);
  border-color: var(--st-primary-container);
  color: var(--st-on-primary-container);
  box-shadow: 0 4px 12px rgba(36, 56, 156, 0.25);
}

.btn-warning {
  background: #d97706;
  border-color: #d97706;
  color: #fff;
}

.btn-warning:hover {
  background: #b45309;
  border-color: #b45309;
  color: #fff;
}

/* ── Alerts ──────────────────────────────────────────────────────────────── */
.alert {
  border: none;
  border-radius: 0.75rem;
  font-size: 0.875rem;
}

.alert-danger  { background: rgba(186, 26, 26, 0.08); color: var(--st-error); }
.alert-success { background: rgba(0, 108, 73, 0.08);  color: var(--st-secondary); }
.alert-info    { background: rgba(36, 56, 156, 0.07); color: var(--st-primary); }

.alert a { color: inherit; font-weight: 600; }

/* ── Divider ─────────────────────────────────────────────────────────────── */
hr { border-color: rgba(197, 197, 212, 0.3); opacity: 1; }

/* ── Info list (setup page) ──────────────────────────────────────────────── */
.setup-info ol {
  padding-left: 1.25rem;
  margin: 0;
  color: var(--st-on-surface-variant);
  font-size: 0.875rem;
  line-height: 1.8;
}

.setup-info a { color: var(--st-primary); font-weight: 500; }
