/* ==========================================================================
   GLOBAL STYLESHEET — CLEANED FOR LOGIN / SIGNUP / DASHBOARD UI
   Focused only on what's actually used across login.html, signup.html, app.py
   -------------------------------------------------------------------------- */

/* ----------------------------------
   GLOBAL TYPOGRAPHY + COLORS
---------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Ovo&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@600&display=swap');

body {
  font-family: 'Open Sans', sans-serif;
  background-image: url("../images/field.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  padding-top: 55.75px; /* Navbar height */
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* ----------------------------------
   NAVBAR STYLES
---------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 55.75px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-logo {
  height: 45px;
  margin-right: auto;
}

.cb-navbar-text {
  font-family: "Ovo", Georgia, serif;
  font-size: 1.25rem;
  color: #1C2D1F;
  text-align: center;
  margin: auto;
}

.navbar-spacer {
  width: 137px; /* space placeholder to balance centered brand */
}

/* ----------------------------------
   FORM CONTAINERS + WRAPPERS
---------------------------------- */
.centered-form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #1C2D1F;
  max-width: 600px;
  margin: 2rem auto 4rem auto;
  padding: 1rem;
  box-sizing: border-box;
}

.form-box {
  background-color: rgba(79, 85, 101, 0.75);
  border-radius: 10px;
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  overflow: visible;
}

.form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

.form-box input,
.form-box select {
  width: 300px;
  padding: 12px 20px;
  border-radius: 10px;
  background: #ddd;
  border: 1px solid transparent;
  font-size: 14px;
  box-sizing: border-box;
}

.form-box input:focus,
.form-box select:focus {
  border: 1px solid rgb(187, 68, 48);
  outline: none;
}

/* ----------------------------------
   HEADERS & TEXT STYLING
---------------------------------- */
.headline,
.form-box h3 {
  font-family: 'Ovo', Georgia, serif;
  font-size: 1.5rem;
  color: white;
  text-align: center;
}

.intro-text,
.funded-text {
  color: white;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-align: center;
}

.funded-text {
  font-style: italic;
  font-size: 0.85rem;
  color: #e0e0e0;
}

/* ----------------------------------
   BUTTON STYLES
---------------------------------- */
.btn {
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  background: transparent;
  color: white;
  width: 300px;
  font-size: 14px;
  cursor: pointer;
  display: block;
  text-transform: uppercase;
  transition: 0.2s background;
}

.btn.submit {
  background: rgb(187, 68, 48);
  color: white;
}

.btn.submit:hover {
  background: white;
  color: rgb(187, 68, 48);
  border: 1px solid rgb(187, 68, 48);
}

.btn:disabled {
  background: #ccc;
  color: #666;
  border: 1px solid #aaa;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ----------------------------------
   FORM MESSAGE (ERROR DISPLAY)
---------------------------------- */
.form-message {
  background-color: #f0f0f0;
  color: #cc0000 !important;
  border: none !important;
  border-radius: 6px;
  padding: 0.15rem .25rem;
  margin-top: 0.15rem;
  margin-bottom: 0.15rem;
  font-size: 10px !important;
  line-height: 1.4;
  display: none;
  max-width: 300px;
  box-sizing: border-box;
  text-align: center;
  font-weight: 400;
}

/* ----------------------------------
   FORM MESSAGE (SUCCESS DISPLAY)
---------------------------------- */
.form-message-success {
  background-color: #e0f7e9;
  color: #2e7d32 !important;
  border: none !important;
  border-radius: 6px;
  padding: 0.15rem .25rem;
  margin-top: 0.15rem;
  margin-bottom: 0.15rem;
  font-size: 10px !important;
  line-height: 1.4;
  display: none;
  max-width: 300px;
  box-sizing: border-box;
  text-align: center;
  font-weight: 400;
}

/* ----------------------------------
   LINK STYLES BELOW FORMS
---------------------------------- */
.form-links {
  text-align: center;
  font-size: 0.9rem;
  color: white;
  margin-top: 0;
}

.form-links .link-line {
  margin-top: 0 !important;
  margin-bottom: 0.2rem !important;
  line-height: 1.4;
}

.form-links a {
  color: white;
  text-decoration: underline;
}

.form-links a:hover {
  color: rgb(187, 68, 48);
}

/* ----------------------------------
   ANIMATION: SHAKE ON LOGIN ERROR
---------------------------------- */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

.form-message.shake {
  animation: shake 0.4s ease;
}

/* ----------------------------------
   TOOLTIP STYLING
---------------------------------- */
    .tooltip-wrapper {
      position: relative;            /* required for positioning the icon */
      width: 300px;                  /* match other input widths */
      margin: 0 auto;                /* centers the whole wrapper */
      display: flex;                /* use flex to align input + icon */
      align-items: center;
    }
    .tooltip-wrapper input {
      width: 100%;
      height: 45px;                  /* match your input height */
      padding: 12px 20px;
      border-radius: 10px;
      background: #ddd;
      border: 1px solid transparent;
      font-size: 14px;
      box-sizing: border-box;
    }
    .tooltip-icon {
      position: absolute;
      top: 10px;
      right: -26px;
      background-color: #999;
      color: white;
      border-radius: 50%;
      width: 20px;
      height: 20px;
      font-size: 13px;
      font-weight: bold;
      text-align: center;
      line-height: 20px;
      cursor: pointer;
    }
    .tooltip-icon:hover .tooltip-text {
      visibility: visible;
      opacity: 1;
    }
    .tooltip-text {
      visibility: hidden;
      width: 260px;
      background-color: rgba(60, 60, 60, 0.95);
      color: #fff;
      text-align: left;
      border-radius: 6px;
      padding: 10px;
      position: absolute;
      left: 110%;
      top: 50%;
      transform: translateY(-50%);
      opacity: 0;
      transition: opacity 0.3s;
      font-size: 13px;
      z-index: 10;
      box-shadow: 0 0 6px rgba(0,0,0,0.2);
    }
