/* =================================================
   GLOBAL RESET
================================================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Montserrat',sans-serif;
  background:#fff;
  color:#000;
  overflow-x:hidden;
}

/* =================================================
   HEADER
================================================= */
.main-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 24px;
  background:#fff;
  border-bottom:1px solid #eee;
  position:relative;
  z-index:1000;
}

.logo{
  font-size:22px;
  font-weight:700;
  letter-spacing:2px;
}

/* ---------------- Desktop Nav ---------------- */
.nav-links a{
  margin:0 16px;
  text-decoration:none;
  color:#000;
  font-weight:600;
}

/* ---------------- Actions ---------------- */
.header-actions{
  display:flex;
  align-items:center;
  gap:18px;
}

.search-bar{
  display:flex;
  align-items:center;
  background:#f5f5f5;
  padding:6px 12px;
  border-radius:4px;
}
.search-bar input{
  border:none;
  outline:none;
  background:transparent;
}

/* icons */
.icon-group{
  display:flex;
  gap:14px;
}
.icon-group a{
  color:#000;
  font-size:18px;
}

/* hide mobile items on desktop */
.menu-toggle,
.search-icon{
  display:none;
}

/* =================================================
   MOBILE HEADER
================================================= */
@media(max-width:768px){

  /* hide desktop stuff */
  .nav-links,
  .search-bar{
    display:none !important;
  }

  /* show mobile controls */
  .menu-toggle,
  .search-icon{
    display:block !important;
    font-size:18px;
    cursor:pointer;
  }

  /* header layout */
  .main-header{
    display:grid;
    grid-template-columns:40px 1fr auto;
    align-items:center;
    padding:12px 14px;
  }

  .menu-toggle{
    justify-self:start;
  }

  .logo{
    text-align:center;
    font-size:18px;
  }

  .header-actions{
    display:flex !important;
    align-items:center;
    gap:16px;
    justify-self:end;
  }

  .icon-group{
    display:flex !important;
    gap:16px;
  }

  .icon-group a{
    display:block !important;
    font-size:16px;
  }
}

/* =================================================
   MOBILE MENU DROPDOWN
================================================= */
/* MOBILE MENU BASE */
.mobile-nav{
  position: fixed;
  top: 70px;               /* below header */
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
  z-index: 3000;

  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

/* WHEN TOGGLED */
.mobile-nav.active{
  max-height: 300px;
}

.mobile-nav a{
  display:block;
  padding:14px 20px;
  text-decoration:none;
  color:#000;
  font-weight:600;
  border-bottom:1px solid #f1f1f1;
}


/* =================================================
   SIGNUP / LOGIN LAYOUT
================================================= */
.signup-wrapper{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:90vh;
  gap:80px;
  padding:60px 5%;
}

.signup-visual{
  flex:1;
  display:flex;
  justify-content:center;
}

.image-box{
  background:#ebe6dc;
  width:100%;
  max-width:550px;
  aspect-ratio:1/1;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:4px;
}
.image-box img{
  width:100%;
  height:auto;
  object-fit:contain;
}

.signup-content{
  flex:1;
  display:flex;
  justify-content:flex-start;
}

.signup-form-box{
  width:100%;
  max-width:400px;
}

.auth-title{
  font-size:36px;
  font-weight:600;
  margin-bottom:10px;
}
.auth-subtitle{
  font-size:16px;
  margin-bottom:40px;
}

/* inputs */
.input-underline-group{
  margin-bottom:30px;
  border-bottom:1px solid #7d8184;
}
.input-underline-group input{
  width:100%;
  border:none;
  padding:10px 0;
  font-size:16px;
  outline:none;
  background:transparent;
}

/* buttons */
.btn-primary-blue{
  width:100%;
  background:#4a7fd4;
  color:#fff;
  border:none;
  padding:16px;
  border-radius:4px;
  font-size:16px;
  font-weight:500;
  cursor:pointer;
  margin-bottom:15px;
}

.btn-google{
  width:100%;
  background:#fff;
  border:1px solid #7d8184;
  padding:16px;
  border-radius:4px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  cursor:pointer;
}

.login-redirect{
  margin-top:25px;
  text-align:center;
  font-size:14px;
}
.login-redirect a{
  color:#000;
  font-weight:600;
  text-decoration:underline;
}

/* hide image on mobile */
@media(max-width:768px){
  .signup-wrapper{
    flex-direction:column;
    gap:40px;
    padding-top:20px;
  }
  .image-box{
    display:none;
  }
}

/* =================================================
   FOOTER (CENTERED + CLEAN)
================================================= */
.main-footer{
  width:100%;
  border-top:1px solid #f1f1f1;
  margin-top:40px;
}

/* top / middle / bottom centered */
.footer-top,
.footer-middle,
.footer-bottom{
  display:flex;
  justify-content:center;
}

.footer-top .container,
.footer-middle .container,
.footer-bottom .container{
  width:100%;
  max-width:1050px;
  padding:0 15px;
}

/* ---------- top ---------- */
.footer-top{
  background:#fafafa;
  padding:40px 0;
}

.footer-brand-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.footer-brand-row .logo{
  font-size:24px;
  font-weight:700;
}

.social-icons{
  display:flex;
  gap:20px;
}
.social-icons a{
  font-size:22px;
  color:#23a6f0;
}

/* ---------- middle ---------- */
.footer-middle{
  padding:70px 0;
}

.footer-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:30px;
}

.footer-col h5{
  font-size:16px;
  font-weight:700;
  margin-bottom:20px;
}
.footer-col ul{
  list-style:none;
}
.footer-col ul li{
  margin-bottom:10px;
}
.footer-col ul li a{
  text-decoration:none;
  color:#737373;
  font-size:14px;
  font-weight:600;
}

/* newsletter */
.subscribe-form{
  display:flex;
  height:50px;
}
.subscribe-form input{
  flex:1;
  border:1px solid #e6e6e6;
  border-radius:5px 0 0 5px;
  padding:0 15px;
}
.subscribe-form button{
  border:none;
  background:#23a6f0;
  color:#fff;
  padding:0 20px;
  border-radius:0 5px 5px 0;
}

/* ---------- bottom ---------- */
.footer-bottom{
  background:#fafafa;
  padding:25px 0;
}
.footer-bottom p{
  font-size:14px;
  font-weight:700;
  color:#737373;
}

/* ---------- footer mobile ---------- */
@media(max-width:992px){
  .footer-grid{
    grid-template-columns:repeat(2,1fr);
  }
}
@media(max-width:600px){
  .footer-grid{
    grid-template-columns:1fr;
    text-align:center;
  }
  .footer-brand-row{
    flex-direction:column;
    gap:20px;
    text-align:center;
  }
  .footer-bottom p{
    text-align:center;
  }
  
}


/* ================= USER DROPDOWN FIX ================= */

.user-menu {
  position: relative;
}

/* user icon */
.user-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #000;
}

/* dropdown box */
.user-dropdown {
  position: absolute;
  top: 45px;
  right: 0;

  width: 220px;
  background: #3f3f3f;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);

  display: none;              /* 🔥 KEY LINE */
  flex-direction: column;
  z-index: 9999;
}
/* =========================
   GOOGLE SIGNUP BUTTON (STANDARD)
========================= */
.google-auth-wrapper {
  margin-top: 16px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.google-auth-wrapper .g_id_signin {
  width: 100%;
}

.google-auth-wrapper iframe {
  width: 100% !important;
  height: 52px !important;        /* same as Create Account */
  border-radius: 6px !important;
  box-shadow: none !important;
}

/* show only when active */
.user-dropdown.active {
  display: flex;
}

/* dropdown links */
.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 16px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
}

/* hover */
.user-dropdown a:hover {
  background: rgba(255,255,255,0.12);
}

/* logout color */
.user-dropdown .logout {
  color: #ffb3b3;
}
