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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.15) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.1) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    border-radius: 50%;
    animation: pulse 6s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* --- Scrollable Body Fix --- */
html, body {
  height: auto !important;
  min-height: 100vh;
  overflow-y: auto; /* enable vertical scroll */
  overflow-x: hidden;
}

/* Ensure background gradients and animations still cover full screen while scrolling */
body::before,
body::after {
  position: fixed; /* keep the glowing effects fixed */
}



.login-page {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.auth-container {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(220, 20, 60, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
    border: 1px solid rgba(220, 20, 60, 0.2);
}

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

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #dc143c 50%, 
        transparent 100%);
    border-radius: 20px 20px 0 0;
}

.auth-container h2 {
    color: #ffffff;
    margin-bottom: 35px;
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 0 20px rgba(220, 20, 60, 0.3);
}

.error-box {
    background: rgba(220, 20, 60, 0.1);
    border: 1px solid rgba(220, 20, 60, 0.4);
    border-left: 4px solid #dc143c;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-box p {
    color: #ff6b6b;
    font-size: 14px;
    margin: 5px 0;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 16px 20px;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    background: rgba(35, 35, 35, 0.9);
    border-color: #dc143c;
    box-shadow: 
        0 0 0 3px rgba(220, 20, 60, 0.1),
        0 4px 12px rgba(220, 20, 60, 0.2);
    transform: translateY(-2px);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 5px 0;
}

button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
    position: relative;
    overflow: hidden;
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
}

button[type="submit"]:hover::before {
    left: 100%;
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, #ff1744 0%, #a00000 100%);
    box-shadow: 0 6px 25px rgba(220, 20, 60, 0.5);
    transform: translateY(-2px);
}

button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(220, 20, 60, 0.4);
}

form p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-align: center;
    margin: 5px 0;
}

form a {
    color: #dc143c;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

form a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #dc143c;
    transition: width 0.3s ease;
}

form a:hover::after {
    width: 100%;
}

form a:hover {
    color: #ff1744;
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        margin: 20px;
        padding: 40px 30px;
    }
    
    .auth-container h2 {
        font-size: 28px;
    }
    
    body::before,
    body::after {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 35px 25px;
        border-radius: 15px;
    }
    
    .auth-container h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    input[type="email"],
    input[type="password"],
    input[type="text"] {
        padding: 14px 18px;
        font-size: 14px;
    }
    
    button[type="submit"] {
        padding: 14px;
        font-size: 15px;
    }
}
    .back-link {
      text-align: center;
      margin: 30px 0;
    }
    .back-link a {
      color: #ff3333;
      text-decoration: none;
      font-size: 18px;
      padding: 10px 20px;
      border: 1px solid #ff3333;
      border-radius: 5px;
      transition: all 0.3s;
    }
    .back-link a:hover {
      background: #ff3333;
      color: #fff;
    }

   /* --- Header --- */
header {
  position: fixed;       /* Fixes the header to the top */
  top: 0;
  left: 0;
  width: 100%;           /* Full width */
  z-index: 9999;         /* Always on top */
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #222;
  padding: 15px 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5); /* subtle shadow */
}

/* Push page content below header */
body {
  padding-top: 80px; /* Adjust to match header height */
}

/* Logo */
header .logo {
  display: flex;
  align-items: center;
}
header .logo img {
  height: 45px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
}
header .logo img:hover {
  transform: scale(1.05);
}

/* Navigation */
header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 0;
  padding: 0;
}
header nav ul li a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
  padding: 5px 0;
}
header nav ul li a:hover {
  color: #ff3333;
}

/* Account Icon */
.account-icon {
  width: 40px;
  height: 40px;
  background: #000;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 15px;
}
.account-icon:hover {
  background: #333;
  border-color: #ff3333;
}
.profile-img,
.profile-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.account-icon:hover .profile-img {
  transform: scale(1.1);
  border: 2px solid #ff3333;
}
.account-icon:hover .profile-placeholder {
  transform: scale(1.1);
  background: linear-gradient(135deg, #764ba2, #667eea);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 50px;
  background: #222;
  border-radius: 5px;
  list-style: none;
  padding: 10px 0;
  min-width: 150px;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.5);
  z-index: 999;
}
.dropdown-menu li a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
}


.dropdown-menu.show { display: block; }

    /* --- Login Box --- */
    .auth-container {
      background: #222;
      width: 100%;
      max-width: 400px;
      margin: 100px auto;
      padding: 40px 30px;
      border-radius: 10px;
      box-shadow: 0 0 20px rgba(0,0,0,0.6);
      text-align: center;
    }
    .auth-container h2 {
      color: #ff3333;
      margin-bottom: 20px;
    }
    .auth-container input {
      width: 100%;
      padding: 12px 15px;
      margin: 10px 0;
      border: none;
      border-radius: 5px;
      background: #333;
      color: #fff;
    }
    .auth-container button {
      width: 100%;
      padding: 12px;
      border: none;
      border-radius: 5px;
      background: #ff3333;
      color: #fff;
      font-weight: bold;
      cursor: pointer;
      margin-top: 10px;
      transition: all 0.3s;
    }
    .auth-container button:hover {
      background: #cc0000;
    }
    .auth-container a {
      color: #ff3333;
      text-decoration: none;
    }
    .auth-container a:hover {
      text-decoration: underline;
    }
    .error-box {
      background: #3b1a1a;
      color: #ffb3b3;
      padding: 10px 15px;
      border-radius: 6px;
      margin-bottom: 15px;
      text-align: left;
      font-size: 14px;
    }
    .g-recaptcha { margin: 15px 0; display: flex; justify-content: center; }

    /*  Responsive   */


    /* --- RESPONSIVE FIXES FOR ALL DEVICES --- */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  header {
    padding: 12px 30px;
  }

  header nav ul {
    gap: 15px;
  }

  .auth-container {
    max-width: 420px;
    padding: 45px 35px;
  }

  .auth-container h2 {
    font-size: 28px;
  }
}

/* Tablet Portrait & Large Phones (max-width: 768px) */
@media (max-width: 768px) {
  /* Header Stack */
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  header .logo {
    margin-bottom: 10px;
  }

  header nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    display: none;
    background: #111;
    padding: 10px 0;
    border-radius: 8px;
  }

  header nav ul.active {
    display: flex;
  }

  /* Menu Toggle (hamburger) */
  .menu-toggle {
    display: block;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 18px;
  }

  /* Login Box */
  .auth-container {
    margin: 100px 20px;
    padding: 40px 30px;
    width: calc(100% - 40px);
  }

  input[type="email"],
  input[type="password"],
  input[type="text"] {
    font-size: 15px;
    padding: 14px 16px;
  }

  button[type="submit"] {
    font-size: 15px;
    padding: 14px;
  }
}

/* Small Phones (max-width: 480px) */
@media (max-width: 480px) {
  body {
    padding-top: 70px;
  }

  header {
    padding: 8px 15px;
  }

  .logo img {
    height: 35px;
  }

  .auth-container {
    margin: 80px 15px;
    padding: 30px 25px;
    border-radius: 10px;
  }

  .auth-container h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  input[type="email"],
  input[type="password"],
  input[type="text"] {
    font-size: 14px;
    padding: 12px 14px;
  }

  button[type="submit"] {
    font-size: 14px;
    padding: 12px;
  }

  form p {
    font-size: 13px;
  }
}



.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}



.logo-text {
  font-size: 0.80em;
  font-weight: 550;
  color: #fff; /* or your theme color */
  letter-spacing: 1px;
}

/* Divider under Forgot Password */
.divider {
  text-align: center;
  margin: 18px 0;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  position: relative;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: rgba(255,255,255,0.15);
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

/* Google Sign-In Button */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px;
  border-radius: 10px;
  background: #fff;
  color: #444;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.google-btn img {
  width: 18px;
  height: 18px;
}

/* Hover & Active */
.google-btn:hover {
  background: #f1f1f1;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.google-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

/* Mobile fine-tuning */
@media (max-width: 480px) {
  .google-btn {
    font-size: 13px;
    padding: 12px;
  }
}
