/* ==========================================================================
   1. GLOBAL LAYOUT OVERRIDE
   ========================================================================== */
main.main-content {
  display: block !important;
  padding: 0;
  margin: 0;
}



/* -------------------------------------------------------------------
   Glassy Login Card
------------------------------------------------------------------- */
.login-section {
  width: 100%;
  max-width: 400px;
  padding: 2.5rem 1.7rem;
  background: linear-gradient(115deg, rgba(143,163,255,0.35) 0%, rgba(108,199,255,0.32) 100%);
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(28,40,150,0.10);
  color: #253065;
  text-align: center;
  animation: fadeIn 0.6s ease-out;
}

/* Logo */
.login-logo {
  display: block;
  margin: 0 auto 1.5rem auto;
  max-width: 120px;
  filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.25));
}

/* Heading */
.login-section h1 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1.6rem;
  font-size: 2.1em;
  letter-spacing: 1px;
}

/* -------------------------------------------------------------------
   Input Groups with Icons
------------------------------------------------------------------- */
.input-group {
    
  display: flex;
  align-items: center;
  background: #f9fafe;
  border: 1.2px solid #a1a8f0;
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  margin-bottom: 1rem;
}

.input-group span {
  color: #6a7fd0;
  margin-right: 8px;
  font-size: 1.4rem;
}

.input-group input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.8rem 0.2rem;
  font-size: 1rem;
  color: #232b55;
}

.input-group input:focus {
  outline: none;
}

/* Password Toggle Icon */
.toggle-pass {
  cursor: pointer;
}

/* -------------------------------------------------------------------
   Remember Me + Forgot Password
------------------------------------------------------------------- */
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  gap: 10px;
}

.login-options a {
  color: #004aad;
  text-decoration: none;
  font-weight: 600;
}
.login-options a:hover { text-decoration: underline; }

/* Checkbox sizing */
label { cursor: pointer; }
input[type="checkbox"] {
  width: 16px; height: 16px; margin-right: 6px; vertical-align: -2px;
}
/* -------------------------------------------------------------------
   Google-Style Login Button
------------------------------------------------------------------- */
.google-login-btn {
  width: 50%;
  padding: 0.95rem;
  background: linear-gradient(180deg,#2563eb 0%,#1d4ed8 100%);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 1.05em;
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(29,78,216,.35), inset 0 -2px 0 rgba(255,255,255,.18);
  transition: transform .08s ease, filter .18s ease, box-shadow .18s ease;
}
.google-login-btn:hover {
  filter: brightness(1.04);
  box-shadow: 0 10px 26px rgba(29,78,216,.42), inset 0 -2px 0 rgba(255,255,255,.22);
  transform: translateY(-1px);
}
.google-login-btn:active { transform: translateY(0); }
.google-login-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.google-login-btn:focus-visible {
  outline: 3px solid rgba(79,118,255,.45);
  outline-offset: 2px;
}


/* -------------------------------------------------------------------
   Error Popup
------------------------------------------------------------------- */
.login-error-popup {
  position: fixed;
  left: 50%;
  bottom: 22px;            /* better on mobile than top */
  transform: translateX(-50%);
  background: linear-gradient(108deg, #fef6f7 0%, #fff7f7 100%);
  color: #d90429;
  padding: 1rem 1.6rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 1.02em;
  box-shadow: 0 2px 18px #ef929250;
  z-index: 10000;
  display: none;
  border: 1px solid #f4b6b9;
}

/* -------------------------------------------------------------------
   Animation
------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------------
   Responsive (Mobile Overrides)
------------------------------------------------------------------- */
@media (max-width: 480px) {
  .login-section {
    margin: 1.3rem;
    padding: 1.5rem;
    max-width: 95vw;
  }

  .login-section h1 {
    font-size: 1.6em;
  }

  .input-group {
    flex-direction: row;
    padding: 0.6rem 0.6rem;
  }

  .input-group span {
    font-size: 1.2rem;
  }

  .input-group input {
    font-size: 0.95rem;
  }

  .login-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .google-login-btn {
    font-size: 1em;
    padding: 0.85rem;
  }
}
/* iOS anti-zoom */
@supports (-webkit-touch-callout: none){
  input, select, textarea { font-size:16px !important; min-height:44px; }
  .gro-btn { font-size:16px; padding:12px 16px; }
}
/* ensure the mobile submenu button is visible everywhere (safe) */
.gro-item [data-act="more"]{ display:inline-flex !important; }
