/* ===== Reset + base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #FFE100;
  --primary-dark: #000000;
  --primary-light: #FFF8B0;
  --text-primary: #D97706;

  --secondary-color: #000000;
  --text-color: #000000;
  --text-light: rgba(0, 0, 0, 0.65);

  --bg-color: #FFFFFF;
  --white: #FFFFFF;

  --border-color: rgba(0, 0, 0, 0.12);

  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.text-primary { color: var(--text-primary); }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.p-2 { padding: 1rem; }

/* ===== Buttons (header + forms) ===== */
.btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

/* ===== Main / Sections ===== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: calc(100vh - 200px);
}

.section { display: none; }

.section.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Auth layout ===== */
.auth-container {
  max-width: 500px;
  margin: 0 auto;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: 0.5rem 0.5rem 0 0;
  overflow: hidden;
}

.auth-tab {
  padding: 1rem;
  border: none;
  background: var(--bg-color);
  color: var(--text-light);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
}

.auth-tab.active {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.auth-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
}

.form-tab-content { display: none; }
.form-tab-content.active { display: block; }

/* ===== Forms ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 225, 0, 0.35);
}

/* Helpers for removing inline styles */
.btn-full { width: 100%; }
.link-primary { color: var(--primary-color); }

.divider-top {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.demo-box {
  background: var(--bg-color);
  padding: 1rem;
  border-radius: 0.375rem;
}

.small-help {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  color: var(--text-light);
}

.password-hint {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* ===== Cards ===== */
.card {
  background: #FFFDD0;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

/* Benefits block gradient */
.benefits-card {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.list-indented {
  margin-left: 1.5rem;
  margin-top: 1rem;
  text-align: left;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  display: none;
  z-index: 2000;
  animation: slideIn 0.3s ease-out;
}

.toast.show { display: block; }
.toast.success { border-left: 4px solid var(--success-color); }
.toast.error { border-left: 4px solid var(--danger-color); }

@keyframes slideIn {
  from { transform: translateX(400px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== Responsive (page only) ===== */
@media (max-width: 768px) {
  main { padding: 1rem; }

  .auth-form { padding: 1.25rem; }

  .toast {
    left: 1rem;
    right: 1rem;
    top: 1rem;
  }
}