/* ── Reset ──────────────────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Design tokens (mirrors homepage) ─────────────────────────────────── */
:root {
  --green: #14532d;
  --green-light: #166534;
  --orange: #f97316;
  --orange-light: #fb923c;
  --bg: #f8fafc;
  --text: #1f2937;
  --muted: #6b7280;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Roboto", sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #f5f7f4 100%);
  color: var(--text);
  min-height: 100vh;
  padding: 24px;
}

/* ── Auth wrapper & card ────────────────────────────────────────────────── */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 0 40px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 28px;
  padding: 44px 40px 40px;
  box-shadow: var(--shadow-card);
}

/* ── Card header ────────────────────────────────────────────────────────── */
.auth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 36px;
  gap: 12px;
}

.auth-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #ecfdf5;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.auth-title {
  font-family: "Roboto", "Inter", sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #111827;
}

.auth-subtitle {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Form fields ────────────────────────────────────────────────────────── */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}

.field-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.field-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-family: "Inter", "Roboto", sans-serif;
  font-size: 0.97rem;
  color: var(--text);
  background: #fafafa;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.field-input::placeholder {
  color: #9ca3af;
}

.field-input:focus {
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(20, 83, 45, 0.10);
}

/* Select wrapper (custom arrow) */
.select-wrap {
  position: relative;
}

.field-select {
  cursor: pointer;
  padding-right: 42px;
}

.select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

/* ── Submit button ──────────────────────────────────────────────────────── */
.auth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  margin-top: 8px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 14px;
  font-family: "Inter", "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
  box-shadow: 0 4px 16px rgba(20, 83, 45, 0.22);
}

.auth-btn:hover {
  background: var(--green-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(20, 83, 45, 0.28);
}

.auth-btn:active {
  transform: translateY(0);
}

/* ── Status message ─────────────────────────────────────────────────────── */
.auth-message {
  margin-top: 16px;
  min-height: 22px;
  font-size: 0.9rem;
  text-align: center;
  color: var(--muted);
  transition: color 0.2s;
}

.auth-message.success { color: var(--green); }
.auth-message.error   { color: #dc2626; }

/* ── Bottom switch link ─────────────────────────────────────────────────── */
.auth-switch {
  margin-top: 28px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.auth-link {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-link:hover {
  color: var(--green-light);
  text-decoration: underline;
}

/* ── Fade-in animation ──────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 0.6s ease 0.1s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  body { padding: 14px; }

  .navbar {
    padding: 14px 16px;
    border-radius: 18px;
    top: 14px;
  }

  .logo-img { height: 44px; }

  .auth-card {
    padding: 36px 24px 32px;
    border-radius: 22px;
  }

  .auth-title { font-size: 1.65rem; }
}

@media (max-width: 480px) {
  body { padding: 10px; }

  .navbar {
    top: 10px;
    border-radius: 16px;
  }

  .auth-card {
    padding: 28px 18px 26px;
    border-radius: 18px;
  }
}