*{
    font-family: "DM Sans", sans-serif;
    margin: 0;
    padding: 0;
  }
  
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  background-color: #10647f; /* keep your background */
}

/* The main content wrapper */
.main-content {
  flex: 1; /* pushes the footer to the bottom */
}
  
h1{
    font-size:1.5rem;
    font-weight:bold;
    text-align:center;
    padding:1.3rem;
    margin-bottom:0.4rem;
    color: #10647f;
}
  
/* Header */
.header {
  background-image: linear-gradient(rgba(4,9,30,0.7)), url(../Pictures/schoolBg.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 15px 0;
}

/* NAV BAR */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4%;
}

/* LOGO */
nav img {
  width: 70px;
}

/* NAVIGATION LINKS (DESKTOP) */
.nav-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links ul li {
  display: inline-block;
  position: relative;
  padding: 10px 12px;
}

.nav-links ul li a {
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.nav-links ul li a:hover {
  color: #f5ec34; /* keep your hover style */
}

/* ================================
   DROPDOWN MENU (DESKTOP)
================================ */
ul li ul.dropdown {
  position: absolute;
  background: #A9A9A9;
  width: 170px;
  display: none;
  margin-top: 10px;
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  z-index: 1000;
}

ul li:hover > ul.dropdown {
  display: block;
}

.dropdown li {
  display: block;
  padding: 10px;
}

.dropdown li a {
  color: white;
  display: block;
}

.dropdown li a:hover {
  color: #494732;
  background: #f5ec34;
}

/* ================================
   MOBILE — HAMBURGER
================================ */
.menu-toggle {
  display: none;
  font-size: 30px;
  color: #f5ec34;
  cursor: pointer;
}

/* ================================
   MOBILE NAVIGATION
================================ */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  /* Hide nav by default */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: rgba(4,9,30,0.95);
    padding-top: 80px;
    transition: 0.4s ease;
    z-index: 9999;
  }

  /* Slide-in animation */
  .nav-links.open {
    right: 0;
  }

  .nav-links ul li {
    display: block;
    padding: 15px 20px;
  }

  .nav-links ul li a {
    font-size: 18px;
    display: block;
  }

  /* DROPDOWN inside mobile panel */
  .dropdown {
    position: static;
    display: none;
    background: rgba(255,255,255,0.1);
    margin-top: 5px;
    border-radius: 4px;
  }

  .has-dropdown.show .dropdown {
    display: block;
  }
}

label{
    color: #10647f;
}

.container{
    background-color: #f5ec34;
    width: 90%;
    max-width: 450px;  /* keeps your design on desktop */
    padding: 1.5rem;
    margin: 50px auto;
    border-radius: 10px;
    box-shadow: 0 20px 35px rgba(0, 0 ,0 , 0.9);
    box-sizing: border-box; /* prevents overflow */
    overflow-x: hidden;
}


input{
    color:inherit;
    width:100%;
    background-color:transparent;
    border:none;
    border-bottom:1px solid #10647f;
    padding-left:1.5rem;
    font-size:15px;
}
.input-group{
    padding:1% 0;
    position:relative;

}
.input-group i{
    position:absolute;
    color:#10647f;
}
input:focus{
    background-color: transparent;
    outline:transparent;
    border-bottom:2px solid #494732;
}
input::placeholder{
    color:transparent;
}

/* View password eye icon styling */
#togglePassword {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #10647f;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
}

#togglePassword:hover {
    color: #494732;
}

/* Forgot password link */
.forgot-password {
    text-align: right;
    margin-top: -10px;
}

.forgot-password a {
    color: #10647f;
    font-weight: bold;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #494732;
    text-decoration: underline;
}

/* Forgot password input inside modal */
#forgotPasswordModal input:focus {
    outline: none;
    border-bottom: 2px solid #494732;
}

#forgotPasswordModal .modal-btn {
    width: 100%;
    background: #10647f;
    color: white;
    font-weight: bold;
}

#forgotPasswordModal .modal-btn:hover {
    background: #494732;
}

button{
    font-size:1.1rem;
    padding:8px 0;
    border-radius:5px;
    outline:none;
    border:none;
    width:100%;
    background: #10647f;
    color:white;
    cursor:pointer;
    transition:0.9s;
    margin-bottom: 20px;
}
button:hover{
    background: #494732;
}


 #signUpButton, #signInButton{
    color:#10647f;
    border:none;
    background-color:transparent;
    font-size:1rem;
    font-weight:bold;
}
#signUpButton:hover, #signInButton:hover {
    text-decoration:underline;
    color:#494732;
} 

/* Modal Styles - Add this to your login.css */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #f5ec34;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.9);
    width: 400px;
    max-width: 90%;
    color: #10647f;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    text-align: center;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content h3 {
    color: #10647f;
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    font-weight: bold;
}

.modal-content p {
    color: #10647f;
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #10647f;
}

.error-modal .modal-icon {
    color: #e74c3c;
}

.logout-modal .modal-icon {
    color: #10647f;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #10647f;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #494732;
    transform: scale(1.1);
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.error-btn {
    background: #10647f;
    color: white;
    width: 100%;
}

.error-btn:hover {
    background: #494732;
    transform: translateY(-2px);
}

.cancel-btn {
    background: #6c757d;
    color: white;
    flex: 1;
}

.cancel-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.logout-btn {
    background: #e74c3c;
    color: white;
    flex: 1;
}

.logout-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Modal animation effects */
.modal-content:hover {
    transform: scale(1.02);
}

/* Responsive modal */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .modal-icon {
        font-size: 2.5rem;
    }
}

/* ============================================
   RESPONSIVE FIXES FOR LOGIN PAGE
=============================================== */
@media (max-width: 1024px) {
  .container {
    width: 70%;
  }
}

@media (max-width: 768px) {

  /* Make login box fit mobile */
  .container {
    width: 90%;
    margin: 30px auto;
    padding: 1.2rem;
  }

  h1 {
    font-size: 1.3rem;
    padding: 1rem;
  }

  label {
    font-size: 0.9rem;
  }

  .input-group {
    padding: 8px 0;
  }

  input {
    font-size: 14px;
    padding-left: 1.8rem;
  }

  .input-group i {
    font-size: 0.9rem;
  }

  #togglePassword {
    right: 8px;
    font-size: 0.9rem;
  }

  button {
    font-size: 1rem;
    padding: 10px;
  }
}

@media (max-width: 480px) {

  /* Extra small screens */
  .container {
    width: 95%;
    padding: 1rem;
  }

  h1 {
    font-size: 1.2rem;
  }

  input {
    font-size: 13px;
  }

  .forgot-password {
    font-size: 0.8rem;
  }

  .forgot-password a {
    font-size: 0.8rem;
  }
}
