:root {
  --bg-light: #edf1f6;
  --text-dark: #0f1f3e;
  --btn-green: #2fa866;
  --btn-green-hover: #248656;
  --input-border: #d1d5db;
  --radius: 12px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: var(--bg-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================
   🔝 Topbar
   ========================= */
.topbar {
  background-color: var(--text-dark);
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.left-side {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-icon {
  height: 38px;
  width: auto;
}

.site-text {
  font-size: 24px;
  font-weight: 600;
  color: white;
  line-height: 1;
}

.topbar a.home-btn {
  color: white;
  text-decoration: none;
  font-size: 15px;
  background: transparent;
  border: 2px solid white;
  padding: 6px 14px;
  border-radius: 6px;
  transition: var(--transition);
}

.topbar a.home-btn:hover {
  background-color: white;
  color: var(--text-dark);
}

/* =========================
   🧾 Main Content
   ========================= */
.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 120px 20px 80px; /* space for top & bottom bars */
}

/* =========================
   📥 Login / Forms
   ========================= */
.form-container,
.verify-box {
  background-color: #fff;
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

h2 {
  color: var(--text-dark);
  font-size: 26px;
  margin-bottom: 30px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  text-align: left;
  color: var(--text-dark);
  font-size: 14px;
}

input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  font-size: 15px;
  outline: none;
  transition: var(--transition);
  box-sizing: border-box;
}

input:focus {
  border-color: var(--btn-green);
  box-shadow: 0 0 0 2px rgba(47, 168, 102, 0.2);
}

.btn,
.full-btn,
.forgot-form .btn {
  width: 100%;
  background-color: var(--btn-green);
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover,
.full-btn:hover,
.forgot-form .btn:hover {
  background-color: var(--btn-green-hover);
}

.footer-links {
  margin-top: 18px;
  text-align: center;
}

.footer-links a {
  color: #0077cc;
  text-decoration: none;
  font-size: 13px;
  display: inline-block;
  margin: 4px 0;
}

/* =========================
   👁️ Eye Inside Password Field
   ========================= */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px;
}

.eye-icon {
  position: absolute;
  right: 12px;
  top: 15px;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: #555;
}

.eye-icon:hover {
  color: var(--btn-green);
}

.eye-icon {
  user-select: none;
}

/* =========================
   🔔 Popup Error
   ========================= */
.popup-error {
  background-color: #e63946;
  color: white;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 8px;
  animation: fadein 0.3s ease-in;
  font-size: 14px;
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =========================
   ⌨ Forgot & Verify Forms
   ========================= */
.forgot-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.verify-box h2 {
  font-size: 24px;
  margin-bottom: 25px;
  color: #0f1f3e;
}

.resend-form label {
  display: block;
  text-align: left;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
  color: #333;
}

.resend-form input[type="email"] {
  margin-bottom: 20px;
}

/* =========================
   🦶 Bottom Bar
   ========================= */
.bottombar {
  width: 100%;
  background-color: var(--text-dark);
  color: white;
  text-align: center;
  padding: 14px 0;
  font-size: 13px;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 100;
}

/* =========================
   📱 Responsive Tweaks
   ========================= */
@media (max-width: 480px) {
  .topbar-inner {
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
    text-align: center;
  }

  .site-text {
    font-size: 20px;
  }

  .topbar a.home-btn {
    padding: 5px 10px;
    font-size: 14px;
  }

  .main-content {
    padding: 100px 15px 80px;
  }

  .form-container,
  .verify-box {
    padding: 30px 20px;
  }

  h2 {
    font-size: 22px;
  }

  .btn,
  .full-btn {
    font-size: 15px;
  }

  input[type="text"],
  input[type="password"],
  input[type="email"] {
    font-size: 14px;
    padding: 10px;
  }

  .footer-links a {
    font-size: 12px;
  }

  .popup-error {
    font-size: 13px;
  }
}
