/* =========================
   ROOT COLORS (DESIGN SYSTEM)
========================= */

:root {
  --primary-color: #2563eb;
  --secondary-color: #22c55e;
  --accent-color: #f59e0b;

  --dark-color: #0f172a;
  --light-color: #f8fafc;

  --card-bg: rgba(255, 255, 255, 0.06);
  --modal-bg: rgba(15, 23, 42, 0.85);
}

/* =========================
   RESET
========================= */

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

/* =========================
   BODY (Mobile First)
========================= */

body {
  font-family: "Poppins", sans-serif;

  background: linear-gradient(135deg, var(--dark-color), #1e293b);

  color: var(--light-color);

  min-height: 100vh;
}

/* =========================
   HERO SECTION
========================= */

.hero {
  min-height: 100vh;

  display: flex;

  justify-content: center;
  align-items: center;

  padding: 20px;
}

/* =========================
   LANDING CARD
========================= */

.card {
  width: 100%;
  max-width: 380px;

  background: var(--card-bg);

  padding: 30px 20px;

  border-radius: 18px;

  text-align: center;

  backdrop-filter: blur(10px);

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.card h1 {
  font-size: 1.6rem;
  font-weight: 600;

  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;

  opacity: 0.85;

  margin-bottom: 22px;
}

/* =========================
   BUTTON
========================= */

.btn {
  display: block;

  width: 100%;

  padding: 15px;

  border: none;

  border-radius: 12px;

  background: var(--secondary-color);

  color: white;

  font-size: 1rem;

  font-weight: 500;

  font-family: "Poppins", sans-serif;

  cursor: pointer;

  transition: 0.25s;
}

.btn:hover {
  background: #16a34a;
}

/* =========================
   MODAL
========================= */

.modal {
  display: none;

  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: var(--modal-bg);

  justify-content: center;
  align-items: center;

  padding: 20px;
}

/* =========================
   MODAL CONTENT
========================= */

.modal-content {
  width: 100%;
  max-width: 360px;

  background: #1e293b;

  padding: 24px 18px;

  border-radius: 16px;

  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
  text-align: center;

  font-size: 1.3rem;

  margin-bottom: 18px;
}

/* =========================
   LOGIN FORM
========================= */

.modal-content form {
  display: flex;
  flex-direction: column;

  gap: 14px;
}

.success {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  text-align: center;
}

/* =========================
   INPUTS
========================= */

.modal-content input {
  width: 100%;

  padding: 14px 14px;

  border-radius: 10px;

  border: none;

  outline: none;

  font-size: 0.95rem;

  font-family: "Poppins", sans-serif;
}

.modal-content input:focus {
  box-shadow: 0 0 0 2px var(--primary-color);
}

/* =========================
   ERROR MESSAGE
========================= */

.error {
  background: rgba(245, 158, 11, 0.15);

  color: #fcd34d;

  padding: 10px 12px;

  border-radius: 10px;

  margin-bottom: 14px;

  font-size: 0.9rem;

  text-align: center;
}

/* =========================
   CLOSE BUTTON
========================= */

.close {
  width: 100%;

  margin-top: 12px;

  padding: 12px;

  border: none;

  border-radius: 10px;

  background: var(--accent-color);

  color: white;

  font-family: "Poppins", sans-serif;

  font-weight: 500;

  cursor: pointer;
}

.forgot-password-row {
  margin-top: 12px;
  margin-bottom: 8px;
  text-align: center;
}

.forgot-password-link {
  color: #bfdbfe;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.forgot-password-link:hover {
  color: #dbeafe;
}

/* =========================
   TABLET (768px)
========================= */

@media (min-width: 768px) {
  .card {
    max-width: 440px;

    padding: 40px 30px;
  }

  .card h1 {
    font-size: 2rem;
  }

  .modal-content {
    max-width: 400px;

    padding: 28px 22px;
  }
}

/* =========================
   DESKTOP (1024px)
========================= */

@media (min-width: 1024px) {
  .card {
    max-width: 500px;
  }
}
