/* ─────────────────────────────────────────────────────────
   Perch by Project Kestrel — Base Layout
   ───────────────────────────────────────────────────────── */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Source Serif 4', 'Georgia', serif;
  color: var(--ink);
  background: var(--paper);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────
   Full-Bleed Auth Container
   ───────────────────────────────────────────────────────── */

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: var(--paper);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  background: var(--sand);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.auth-card-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-card-logo {
  display: inline-block;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 14px;
}

.auth-card h1 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: #fff;
}

.auth-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* ─ Clerk Component Wrapper ─ */
.clerk-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cl-root {
  --primary-color: #d46b2a;
  --fontFamily: 'Source Serif 4', serif;
}

.cl-form_headerTitle {
  color: #fff !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700;
  font-size: 1.1rem !important;
}

.cl-form_headerSubtitle {
  color: rgba(255, 255, 255, 0.65) !important;
}

.cl-button {
  background: #d46b2a !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 600 !important;
}

.cl-button:hover {
  background: #c25a1a !important;
}

.cl-textField_input {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border-radius: 8px !important;
}

.cl-textField_input::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.cl-textField_input:focus {
  border-color: #d46b2a !important;
  box-shadow: 0 0 0 3px rgba(212, 107, 42, 0.12) !important;
}

.cl-formButtonPrimary {
  background: #d46b2a !important;
  color: #fff !important;
}

.cl-formButtonPrimary:hover {
  background: #c25a1a !important;
}

.cl-divider {
  background: rgba(255, 255, 255, 0.06) !important;
}

.cl-socialButton {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

.cl-socialButton:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

.cl-link {
  color: #d46b2a !important;
}

.cl-link:hover {
  color: #e67e38 !important;
}

/* ─────────────────────────────────────────────────────────
   Page Layout
   ───────────────────────────────────────────────────────── */

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* ─────────────────────────────────────────────────────────
   Header / Navigation
   ───────────────────────────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 24px var(--shadow);
  background: var(--white);
}

.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  margin: 0;
}

.brand-tagline {
  margin: 2px 0 0;
  color: var(--slate);
  font-size: 0.9rem;
}

/* ─────────────────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────────────────── */

.btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn.primary {
  background: #d46b2a;
  color: #fff;
}

.btn.primary:hover {
  background: #c25a1a;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ─────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .auth-card {
    padding: 32px 24px;
    max-width: 100%;
  }

  .page {
    padding: 20px 16px 40px;
  }
}

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

  .auth-card h1 {
    font-size: 1.2rem;
  }

  .page {
    padding: 16px 12px 32px;
  }
}
