/* ===== LOGIN PAGE HERO ===== */

.login-page .hero {
  height: 120vh;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 60px;

  background-image: url('/images/login-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===== DARK OVERLAY ===== */
.login-page .hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* ===== CONTENT ABOVE OVERLAY ===== */
.login-page .hero > * {
  position: relative;
  z-index: 2;
}

/* ===== LOGIN BOX (GLASS EFFECT) ===== */
.signin-box {
  width: 280px;
  padding: 25px;
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);

  box-shadow: 0 20px 40px rgba(0,0,0,0.5);

  color: white;
}

/* ===== HEADINGS ===== */
.signin-box h2 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 5px;
}

.signin-box h6 {
  font-size: 11px;
  color: #ccc;
  margin-bottom: 15px;
}

/* ===== INPUTS ===== */
.signin-box input {
  width: 100%;
  padding: 8px 10px;
  font-size: 12px;
  border: none;
  border-radius: 8px;
  margin-bottom: 12px;

  background: rgba(255,255,255,0.15);
  color: white;
  outline: none;
}

/* ===== PASSWORD ===== */
.password-container {
  position: relative;
}

.password-container input {
  padding-right: 30px;
}

.password-container i {
  position: absolute;
  right: 10px;
  top: 50%;
  font-size: 12px;
  color: #bbb;
  cursor: pointer;
}

/* ===== FORGOT ===== */
.forgot {
  display: block;
  text-align: right;
  font-size: 10px;
  color: #bbb;
  text-decoration: none;
  margin-bottom: 10px;
}

.forgot:hover {
  color: #f4a300;
}

/* ===== BUTTON ===== */
.signin-box button {
  width: 100%;
  padding: 10px;
  font-size: 13px;

  background: black;
  color: white;

  border: none;
  border-radius: 25px;
  cursor: pointer;

  margin-bottom: 10px;
}

/* ===== SIGNUP TEXT ===== */
.signup-text {
  text-align: center;
  font-size: 10px;
  color: #bbb;
  margin-bottom: 10px;
}

.signup-text a {
  color: white;
  text-decoration: none;
}

/* ===== CONTINUE TEXT ===== */
.continue-text {
  text-align: center;
  font-size: 9px;
  color: rgba(255,255,255,0.6);
  margin: 10px 0;
}


/* ===== RIGHT SIDE TEXT ===== */
.right {
  max-width: 520px;
  color: white;
}

.right h1 {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.2;
}

.right p {
  font-size: 16px;
  margin-top: 10px;
  color: #ddd;
}

.toast-error {
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: #db2222; /* Bright red */
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    font-family: sans-serif;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: none; /* Hidden until error happens */
    z-index: 9999; /* Ensures it stays above everything */
    min-width: 200px;
    text-align: center;
}


/* ===== 1. ALIGN FORGOT LINK TO THE RIGHT ===== */
.form-options {
  display: flex;
  justify-content: flex-end; /* Pushes content to the right */
  margin-top: -8px;          /* Pulls it closer to the password input */
  margin-bottom: 15px;
}

.form-options a {
  font-size: 10px;
  color: #bbb;
  text-decoration: none;
  font-weight: 500;
}

.form-options a:hover {
  color: #f4a300;
}

/* ===== 2. CENTER "OR CONTINUE WITH" ===== */
.separator {
  text-align: center;
  margin: 15px 0;
  position: relative;
}

.separator span {
  font-size: 11px;           /* Small text like design */
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
}

/* ===== 3. GOOGLE BUTTON & ICON FIX ===== */
.google-btn {
  width: 100%;
  padding: 10px;
  border-radius: 25px;       /* Pill shape to match design */
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05); /* Subtle dark glass look */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
}

/* Force the Google icon to appear */
.google-btn img {
  width: 16px !important;
  height: 16px !important;
  display: inline-block !important;
  vertical-align: middle;
}

.google-btn:hover {
  background: rgba(255,255,255,0.15);
}

/* ===== 4. MISC TWEAKS ===== */
.signin-btn {
  border-radius: 25px !important; /* Ensure sign in is also a pill */
  font-weight: 600;
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES FOR LOGIN PAGE
   ========================================== */

/* Tablets and small laptops (1024px and down) */
@media screen and (max-width: 1024px) {
    .login-page .hero {
        height: auto;
        min-height: 100vh;
        padding: 40px;
        gap: 30px;
    }

  .right {
       max-width: 320px;
       color: white;
    }

    .right h1 {
        font-size: 34px;
    }

    .right p {
        font-size: 15px;
    }
}

/* Mobile phones & tablets in portrait (768px and down) */
@media screen and (max-width: 768px) {
    .login-page .hero {
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        padding: 40px 20px;
        text-align: center;
        height: auto;
        min-height: 100vh;
        gap: 40px;
    }

    .right {
        max-width: 100%;
        padding: 0 10px;
    }

    .right h1 {
        font-size: 28px;
    }

    .right p {
        font-size: 14px;
    }

    .signin-box {
        width: 90%;
        max-width: 360px;
        padding: 20px;
    }

    .toast-error {
        top: 20px;
        right: 10px;
        left: 10px;
        min-width: unset;
    }
}

/* Very small screens (400px and down) */
@media screen and (max-width: 400px) {
    .login-page .hero {
        padding: 30px 15px;
        gap: 25px;
    }

    .right h1 {
        font-size: 22px;
    }

    .right p {
        font-size: 13px;
    }

    .signin-box {
        width: 100%;
        max-width: 290px;
        padding: 18px 15px;
        border-radius: 15px;
    }

    .signin-box h2 {
        font-size: 16px;
    }

    .signin-box h6 {
        font-size: 10px;
    }

    .signin-box input {
        padding: 8px 10px;
        font-size: 11px;
    }

    .signin-box button, 
    .google-btn {
        padding: 9px;
        font-size: 12px;
    }
}