/* =========================================
   AUTH PAGES — Login, Signup, Password Reset
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --auth-teal-900: #08322D;
  --auth-teal-700: #0E5C53;
  --auth-teal-600: #147A6D;
  --auth-amber-500: #E2A33B;
  --auth-amber-600: #C98A22;
  --auth-ink: #1B2A27;
  --auth-muted: #6B7A76;
  --auth-border: #DCE6E3;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  background: linear-gradient(160deg, #F5F8F7 0%, #EAF2F0 100%);
  color: var(--auth-ink);
}

.auth-page {
  min-height: calc(100vh - 80px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 50px 20px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 32px rgba(8, 50, 45, 0.12);
  border: 1px solid var(--auth-border);
  border-top: 4px solid var(--auth-teal-700);
  overflow: hidden;
  box-sizing: border-box;
}

.auth-card h2 {
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--auth-teal-900);
}

.auth-card label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--auth-ink);
}

.auth-card input,
.auth-card select,
.auth-card textarea,
.auth-card button {
  width: 100%;
  max-width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--auth-border);
  border-radius: 8px;
  box-sizing: border-box;
  display: block;
  margin: 0 0 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
  outline: none;
  border-color: var(--auth-teal-600);
  box-shadow: 0 0 0 3px rgba(20, 122, 109, 0.15);
}

.auth-card button {
  margin-top: 10px;
  margin-bottom: 0;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: var(--auth-teal-700);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.auth-card button:hover {
  background: var(--auth-teal-900);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 50, 45, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.modal {
  width: 100%;
  max-width: 420px;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 32px rgba(8, 50, 45, 0.18);
  box-sizing: border-box;
}

.modal h3 {
  margin-top: 0;
  font-family: 'Outfit', sans-serif;
  color: var(--auth-teal-700);
  font-weight: 700;
}

.modal p {
  margin: 10px 0;
  color: var(--auth-muted);
  line-height: 1.5;
}

.modal button {
  width: 100%;
  background: var(--auth-teal-700);
  color: white;
  border: none;
  padding: 11px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.modal button:hover {
  background: var(--auth-teal-900);
}

.auth-card a,
.modal a {
  color: var(--auth-teal-700);
  text-decoration: none;
  font-weight: 600;
}

.auth-card a:hover,
.modal a:hover {
  color: var(--auth-teal-900);
  text-decoration: none;
}

.success-panel {
  background: #EAF7F1;
  border: 1px solid #1F8A5F;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  color: #14523B;
}

.success-panel h3 {
  margin-top: 0;
  font-family: 'Outfit', sans-serif;
  color: #1F8A5F;
}

.success-panel p {
  margin: 8px 0;
  line-height: 1.5;
}

.auth-card small {
  display: block;
  margin: -5px 0 10px;
  color: var(--auth-muted);
}

.error {
  background: #FBEAEA;
  border: 1px solid #C0392B;
  color: #8B291D;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 15px;
}
