:root {
  --brown: #5a3d2b;
  --blue-dark: #1b5cd4;
  --bg-grad: linear-gradient(135deg, #f6d6b1, #edcaa9);
  --text-dark: #3b3b3b;
  --text-light: #ffffff;
  --btn-bg: #2575fc;
  --btn-hover: #1b5cd4;
  --card-bg: #ffffff;
  --accent: #f2a97f;
}

/* ===========================
   BASE STYLES
=========================== */
body {
  height: 100%;
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  background: url("assets/images/2.jpg") no-repeat center center/cover;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: -20px 15px 40px; /* space for header + breathing room */
  min-height: 100vh;
}

/* ===========================
   HEADER
=========================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(62, 44, 32, 0.95);
  color: #F5E6D3;
  padding: 15px 50px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

header .logo {
  font-size: 22px;
  font-weight: bold;
  color: #F5E6D3;
}

/* ===========================
   CARD CONTAINER
=========================== */
.card {
  width: 360px;
  background: var(--card-bg);
  border-radius: 14px;
  padding: 34px 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  text-align: center;
  position: relative;
  top: 10vh;
  animation: fadeIn 0.8s ease;
}

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

/* ===========================
   TEXT ELEMENTS
=========================== */
h2 {
  margin: 0 0 18px;
  color: #222;
  font-size: 26px;
  font-weight: 600;
}

.helper {
  color: #666;
  font-size: 13px;
  margin-top: 12px;
}

.message {
  display: none;
  margin-top: 10px;
  font-size: 14px;
}
.message.error {
  color: #d93025;
}
.message.success {
  color: #137333;
}

/* ===========================
   INPUTS & BUTTON
=========================== */
.email-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #d6d6d6;
  margin-bottom: 14px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.email-input:focus {
  border-color: var(--brown);
  outline: none;
}

.btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: var(--brown);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover:not(:disabled) {
  background: #4a2f21;
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ===========================
   BACK BUTTON
=========================== */
#backBtn {
  position: fixed; 
  top: 80px; 
  left: 25px; 
  font-size: 25px; 
  background: rgba(62, 44, 32, 0.95); 
  color: #F5E6D3; 
  border: none; 
  padding: 8px 12px; 
  border-radius: 6px; 
  cursor: pointer; 
  z-index: 1000;
}

#backBtn:hover {
  color:  #5a3d2b;; /* Change color on hover */
}

/* ===========================
   RESPONSIVE DESIGN
=========================== */

/* Tablets and small laptops */
@media (max-width: 992px) {
  header {
    padding: 12px 30px;
  }
  .card {
    width: 400px;
    top: 8vh;
  }
  h2 {
    font-size: 24px;
  }
}

/* Tablets (portrait) */
@media (max-width: 768px) {
  body {
    padding: 100px 15px 40px;
  }
  header {
    padding: 12px 25px;
    justify-content: center;
  }
  .card {
    width: 90%;
    max-width: 380px;
    top: 6vh;
    padding: 28px 22px;
  }
  h2 {
    font-size: 22px;
  }
  .email-input, .btn {
    font-size: 14px;
    padding: 10px;
  }
}

/* Mobile devices */
@media (max-width: 480px) {
  header {
    padding: 10px 20px;
  }
  .logo {
    font-size: 18px;
  }
  .card {
    width: 100%;
    max-width: 330px;
    top: 5vh;
    padding: 25px 18px;
  }
  h2 {
    font-size: 20px;
  }
  .helper {
    font-size: 12px;
  }
  .email-input {
    font-size: 13px;
    padding: 10px 12px;
  }
  .btn {
    font-size: 14px;
    padding: 10px;
  }
}
