@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background-color: #f8fdfd;
  color: #2f4858;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: relative;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f7a8c;
}

.nav-links a {
  text-decoration: none;
  color: #2f4858;
  margin-left: 20px;
  font-weight: 500;
}

/* --- MAIN LOGIN SECTION --- */
.login-section {
  flex: 1; 
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background-color: #f0f7f7;
}

.login-card {
  display: flex;
  flex-direction: row; 
  background: #ffffff;
  width: 100%;
  max-width: 1000px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  overflow: hidden;
}

/* --- LEFT SIDE (Illustration) --- */
.login-left {
  flex: 1;
  background-color: #e6f3f4;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.illustration-wrapper img {
  width: 100%;
  max-width: 320px;
  margin-bottom: 20px;
  display: block;
}

.left-text h2 {
  color: #16697a;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.left-text p {
  color: #5c6b73;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.quote {
  font-style: italic;
  color: #1f7a8c;
  font-weight: 500;
  background: rgba(255,255,255,0.6);
  padding: 10px;
  border-radius: 8px;
}

/* --- RIGHT SIDE (Forms) --- */
.login-right {
  flex: 1;
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-right h1 {
  font-size: 1.8rem;
  color: #16697a;
  margin-bottom: 5px;
}

.subtitle {
  color: #888;
  margin-bottom: 20px;
}

/* --- TOGGLES & BUTTONS --- */
.main-role-toggle {
  display: flex;
  background: #f0f7f7;
  padding: 5px;
  border-radius: 30px;
  margin-bottom: 25px;
  width: 100%;
  box-sizing: border-box;
}

.toggle-pill {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  color: #5c6b73;
  transition: all 0.3s;
  white-space: nowrap;
}

.toggle-pill.active {
  background: #1f7a8c;
  color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.toggle-container {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.toggle-btn {
  background: none;
  border: none;
  padding-bottom: 10px;
  font-size: 1rem;
  cursor: pointer;
  color: #888;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.toggle-btn.active {
  color: #1f7a8c;
  border-bottom: 2px solid #1f7a8c;
}

/* TABS FOR MENTOR */
.tab-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.tab {
  background: none;
  border: 1px solid #dce5e8;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}
.tab.active {
  background: #1f7a8c;
  color: white;
  border-color: #1f7a8c;
}

/* FORMS */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input {
  padding: 12px;
  border: 1px solid #dce5e8;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #fcfcfc;
  width: 100%;
  box-sizing: border-box;
}

.btn-primary {
  background-color: #1f7a8c;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  margin-top: 10px;
}

.btn-primary:hover {
  background-color: #16697a;
}

/* Wrapper ensures the image sits on top of the input */
.password-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 45px; /* Make space for the image */
  box-sizing: border-box;
}

/* The Image Icon Styling */
.toggle-password {
  position: absolute;
  right: 15px;      /* Distance from right edge */
  width: 24px;      /* FORCE the image size */
  height: 24px;     /* FORCE the image size */
  cursor: pointer;
  opacity: 0.7;     /* Make it slightly see-through so it's not distracting */
  transition: 0.2s;
  z-index: 10;
}

.toggle-password:hover {
  opacity: 1;       /* Full visibility on hover */
}

.hidden {
  display: none;
}

.note {
  font-size: 0.8rem;
  color: #888;
  margin-top: 15px;
  text-align: center;
}

.footer {
  text-align: center;
  padding: 20px;
  background-color: #fff;
  color: #888;
  font-size: 0.9rem;
}

.popup-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1f7a8c;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.popup-message.show { opacity: 1; }

/* --- HAMBURGER ICON --- */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1100;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #1f7a8c;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- MOBILE OPTIMIZATION (UPDATED) --- */
@media (max-width: 768px) {

  /* 1. Navbar: Keep it neat */
  .navbar {
    padding: 10px 20px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  .nav-links.active { display: flex; }
  .hamburger { display: flex; }

  /* 2. MAIN CARD: Vertical Stack */
  .login-card {
    flex-direction: column !important;
    width: 100%;
    margin-top:0 !important;
    border-radius: 0; /* Full width looks better on mobile without corners */
    box-shadow: none; /* Flatter look for mobile */
  }

  /* 3. LEFT SIDE (The Illustration Header) */
  .login-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 20px 15px 15px 15px !important; 
    width: 100% !important;
    box-sizing: border-box;
    background-color: #e6f3f4;
  }

  /* 4. THE IMAGE: Make it small and remove bottom gap */
  .illustration-wrapper img {
    max-width: 120px !important; 
    width: auto;
    margin-bottom: 1px !important; 
  }

  /* 5. THE TITLE: "Find Comfort..." */
  .left-text h2 {
    font-size: 1.1rem !important; /* Smaller font */
    color: #16697a;
    
    /* REMOVE GAP: No space above or below the title */
    margin: 0 !important; 
    padding: 0 !important;
  }

  /* 6. HIDE DESCRIPTION: This specifically targets the paragraph */
  .left-text p {
    display: none !important; 
  }

  /* 7. THE QUOTE: Small and tight */
  .quote {
    font-size: 0.75rem !important;
    margin-top: 8px !important; /* Small gap between Title and Quote */
    padding: 5px 10px;
    background: rgba(255,255,255,0.5); /* Lighter background for mobile */
  }

  /* 8. RIGHT SIDE (Forms) */
  .login-right {
    padding: 10px 20px 20px 20px !important; /* Add bottom padding for scrolling */
    width: 100% !important;
    box-sizing: border-box;
  }
  
  .login-right h1 {
    font-size: 1.1rem;
    text-align: center;
    margin-top: 0;
  }

  .subtitle {
    font-size: 0.75rem;
    text-align: center;
  }

  /* 9. TOGGLES & INPUTS */
  .main-role-toggle {
    margin-bottom: 15px;
    padding: 4px;
    display: flex; /* Ensure flex is active to keep pills side-by-side */
  }
  
  .toggle-pill {
    padding: 8px;
    font-size: 0.85rem;
  }

  input {
    padding: 10px;
    font-size: 16px; 
  }
  
  .btn-primary {
    padding: 12px;
  }
  .mobile-hide-text {
    display: none !important;
  }
}
