
* { box-sizing:border-box; margin:0; padding:0; }
html, body {
  height:100%;
  font-family:'Poppins', sans-serif;
  background:linear-gradient(135deg,#ffffff 0%,#dfe4ff 100%);
  color:#1f1c2c;
  overflow-x:hidden;
}

/* ================= NAVIGATION ================= */
nav {
  position:fixed; 
  top:0; 
  left:0; 
  width:100%;
  padding:18px 40px;
  display:flex; 
  justify-content:space-between; 
  align-items:center;
  backdrop-filter:blur(14px);
  background:rgba(255,255,255,0.95);
  border-bottom:1px solid rgba(0,0,0,0.05);
  z-index:10001;
}

nav .logo {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:1.5rem;
  font-weight:700;
  color:#1f1c2c;
}

.logo-img {
  width:35px;
  height:35px;
  object-fit:contain;
}

nav .links { display:flex; gap:25px; }
nav .links a {
  color:#1f1c2c;
  text-decoration:none;
  font-weight:500;
}

nav .hamburger {
  display:none;
  font-size:2rem;
  cursor:pointer;
  color:#1f1c2c;
  z-index:10002;
}

/* Force hamburger to show on small screens */
@media(max-width:900px){
  nav .links { display:none; }
  nav .hamburger { display:block; }
}

/* ================= MOBILE MENU ================= */
#mobileMenu {
  position:fixed;
  top:0;
  right:-100%;
  width:70%;
  height:100%;
  background:rgba(0,0,0,0.9);
  backdrop-filter:blur(6px);
  padding:60px 30px;
  display:flex;
  flex-direction:column;
  gap:25px;
  transition:0.35s ease;
  z-index:10003;
}

#mobileMenu a {
  color:#fff;
  font-size:1.25rem;
  text-decoration:none;
}

#mobileMenu.active { right:0; }

.menu-close {
  position:absolute;
  top:20px; 
  right:25px;
  font-size:2rem;
  color:white;
  cursor:pointer;
}

/* ================= LOGIN WRAPPER ================= */
.login-wrapper {
  display:flex;
  width:100%;
  min-height:100vh;
  margin-top:80px;
}

/* ================= LEFT SIDE ================= */
.login-left {
  flex:1;
  padding:60px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;

  /* FIXED COLOR PROBLEM */
  background:rgba(255,255,255,0.55);
  backdrop-filter:blur(12px);
  color:#1f1c2c; /* dark text so it NEVER disappears */
}

.login-left h1 {
  font-size:2.4rem;
  margin-bottom:15px;
}
.login-left p {
  font-size:1.1rem;
  max-width:380px;
  opacity:0.9;
}

/* ================= RIGHT SIDE ================= */
.login-right {
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:25px;
  padding:40px;
}

/* ================= GLASS CARDS ================= */
.glass-card {
  width:100%;
  max-width:420px;
  padding:25px 30px;
  border-radius:20px;

  background:rgba(32,32,45,0.7);
  border:1px solid rgba(255,255,255,0.1);
  backdrop-filter:blur(20px);
  color:white;

  box-shadow:0 8px 40px rgba(0,0,0,0.25);

  /* NEW FLOATING HOVER ANIMATION */
  transition:transform 0.35s ease, box-shadow 0.35s ease;
}

.glass-card:hover {
  transform:translateY(-8px) scale(1.02);
  box-shadow:0 18px 50px rgba(0,0,0,0.35);
}

/* CARD TITLES */
.glass-card h2 {
  text-align:center;
  margin-bottom:15px;
  font-size:1.7rem;
  color:white;
}

/* ================= SOCIAL LOGIN ================= */
.social-login {
  display:flex;
  gap:12px; 
  width:100%;
}

.social-login button {
  flex:1;
  padding:12px 0;
  border:none;
  border-radius:10px;
  font-weight:600;
  color:white;
  cursor:pointer;
}

.google { background:#db4437; }
.facebook { background:#1877f2; }

/* ================= FORM ================= */
.form-card form {
  width:100%;
}

.form-group {
  text-align:left;
  margin-bottom:20px;
}

label {
  font-size:0.9rem;
  color:#eee;
  margin-bottom:8px;
}

form input {
  width:100%;
  padding:13px 15px;
  background:rgba(255,255,255,0.15);
  border:1px solid rgba(255,255,255,0.3);
  border-radius:10px;
  color:white;
  font-size:1rem;
  margin-top: 3px;
  padding: 14px 16px;
}

form input::placeholder { color:#ccc; }

.errorMessage { 
  color:#ff4c4c; 
  margin-top:4px;
  min-height:18px;
}

/* ================= BUTTON ================= */
button {
  width:100%;
  padding:13px 0;
  border:none;
  border-radius:10px;
  background:#4a90e2;
  color:white;
  font-size:1rem;
  font-weight:600;
  cursor:pointer;
  display:flex;
  justify-content:center;
  align-items:center;
}

button.disabled { opacity:0.6; cursor:not-allowed; }

.spinner {
  width:18px; 
  height:18px;
  border:3px solid rgba(255,255,255,0.3);
  border-top-color:white;
  border-radius:50%;
  animation:spin 0.9s linear infinite;
  display:none;
  margin-right:10px;
}
@keyframes spin { to { transform:rotate(360deg); } }

/* LINKS */
.links {
  margin-top:15px;
  display:flex;
  justify-content:center;
  gap:20px;
}

.links button {
  background:none;
  border:none;
  color:white;
  text-decoration:underline;
  width:auto;
  cursor:pointer;
}

/* ================= MODALS (FIXED) ================= */
.signupModal, .forgotModal {
  position:fixed;
  top:0; 
  left:0;
  width:100%;
  height:100%;
  display:none;
  justify-content:center;
  align-items:center;

  background:rgba(0,0,0,0.7);
  backdrop-filter:blur(8px);

  z-index:10005;
}

.signupModal.active, 
.forgotModal.active {
  display:flex;
}

.modal-content {
  width:90%;
  max-width:450px;
  background:#1f1c2c;
  border-radius:16px;
  padding:30px;
  color:white;
  box-shadow:0 10px 40px rgba(0,0,0,0.5);
}

/* ================= ALERTS ================= */
#alertBackdrop, #customAlertModal {
  position:fixed;
  top:0; left:0;
  width:100%; height:100%;
  display:none;
  justify-content:center;
  align-items:center;
  background:rgba(0,0,0,0.5);
  z-index:10006;
}

#customAlertModal{
    background: #1f1c2c;
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

#alertBackdrop.active, #customAlertModal.active {
  display:flex;
}

/* ================= RESPONSIVE ================= */
@media(max-width:900px){
  .login-wrapper { flex-direction:column; min-height:auto; }
  .login-left { width:100%; padding:50px 25px; }
  .login-right { width:100%; padding:25px; }
}

@media(max-width:500px){
  .glass-card { padding:22px 20px; }
  .login-left h1 { font-size:2rem; }
  .login-left p { font-size:1rem; }
}

