html,
body {
    margin: 0;
    /* Remove default margins */
    padding: 0;
    /* Remove default padding */
    overflow-x: hidden;
    /* Disable horizontal scrolling */
    overflow-y: hidden;
    width: 100%;
    /* Ensure it spans the full width */
}

/* Styling for the login section */
/* Header Styling */
header {

    color: #fff;
    padding: 5px;
    text-align: center;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-media-icons {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.social-media-icons a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
    font-style: italic;
}

.social-media-icons a:hover h2 {
    animation: shake 0.5s forwards;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin: 0 1rem;
}

.nav-links a {
    color: white;
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
    font-style: italic;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
    transform: scale(1.1);
    color: #1f3a52;
}
 
/* LOGO Container - Adjust positioning */
.logo-container {

    display: flex;
    align-items: center;
    margin-right: 50px;
    margin-left: 80px;
    /* Add some margin to separate the logo from the nav */
    flex-shrink: 0;
    /* Prevent it from shrinking on small screens */
    position: relative;
    cursor: pointer;
    margin-top: 260px;
    z-index: 2;
}

.logo-video {
    width: 280px;
    height: auto;
    /* avoid percent-based shrinking */
    object-fit: contain;
    border-radius: 10%;
    object-fit: contain;
}


.logo-container {
    transition: transform 0.1s ease-in-out;
}

.logo-container:hover {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-5px);
    }

    40% {
        transform: translateX(5px);
    }

    60% {
        transform: translateX(-5px);
    }

    80% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}

#login {
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 30px;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;

}

/* Overlay for the background image */
#login::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    /* Ensure it only covers the image height */
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    z-index: 1;
    /* Place it behind the content */
}

#login h2,
P {
    color: #fff;
}

/* Styling for the login form */
/* Initially hide the form off-screen */
.login-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* centered exactly */
    padding: 2rem;
    border-radius: 15px;
    width: 500px;
    text-align: center;
    z-index: 1001;
    /* Glass effect */
    background: linear-gradient(
        135deg,
        rgba(15, 32, 39, 0.85) 0%,   /* dark moody base */
        rgba(32, 58, 67, 0.7) 50%,   /* slightly lighter mid-tone */
        rgba(112, 184, 0, 0.15) 100% /* subtle MoodPàdi green tint */
    );
    /* techy dark blue semi-transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* Subtle techy gradient overlay */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
  0 8px 25px rgba(32, 58, 67, 0.5),   /* deep teal outer glow */
  0 6px 15px rgba(112, 184, 0, 0.25), /* subtle MoodPàdi green lift */
  inset 0 1px 2px rgba(255, 255, 255, 0.05); /* soft inner light */

    transition: transform 0.4s ease, box-shadow 0.3s ease;
}

/* Hover or focus effect for interactivity */
.login-form:hover {
  transform: translate(-50%, -50%) scale(1.03);
 box-shadow:
    0 15px 40px rgba(112, 184, 0, 0.45), /* stronger green glow */
    0 10px 25px rgba(0, 198, 255, 0.3);  /* blue secondary light */
}


@keyframes slideIn {
    0% {
        left: -550px;
    }

    100% {
        left: 50%; 
        transform: translate(-40%, -50%);
    }
}


/* Animate the form sliding in from the left to the center on page load */
.login-form.show {
    animation: slideIn 1.5s forwards;
}



/* Heading Styling */
.login-heading {
    color: white;
    margin-bottom: 1rem;
    font-size: 24px;
    margin-bottom: 60px;
}

/* Input Fields Styling */
.login-form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color:white;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    outline: none;
    transition: background 0.3s ease, transform 0.3s ease;
    outline: none;
}
.login-form input:focus {
  background: rgba(0, 198, 255, 0.15);
  transform: scale(1.02);
}
label {
    color: white !important;
    font-weight: bold;
    margin-top: 10px;
    display: block;
    font-size: 16px;
}

/* Submit Button Styling */

/* === Verification Code Input Boxes === */
.code-box {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin: 0 5px;
    transition: border-color 0.3s ease;
}

.code-box:focus {
    border-color: #1f3a52;
    outline: none;
    box-shadow: 0 0 5px rgba(31, 58, 82, 0.5);
}

/* === Password Fields with Toggle Button === */
.password-field-wrapper {
    position: relative;
}

.password-field-wrapper input {
    padding-right: 40px;
    /* space for toggle button */
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #1f3a52;
}

.login-button {
    position: relative;
    width: 27% !important;
    padding: 10px;
    border: none;
    border-radius: 25px;

    /* Techy gradient matching the login form */
    background: linear-gradient(135deg, rgba(0,198,255,0.8), rgba(0,114,255,0.8));
    color: whitesmoke;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  /* Center horizontally */
    margin: 20px auto;
    /* Glassy shadow effect */
    box-shadow: 0 6px 18px rgba(0,114,255,0.3), 0 4px 10px rgba(0,198,255,0.2);

    /* Smooth hover transition */
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.login-button:hover {
    transform: scale(0.95); /* Shrink slightly on hover */
    background: linear-gradient(135deg, rgba(0,198,255,1), rgba(0,114,255,1)); /* Slightly brighter gradient */
    box-shadow: 0 10px 25px rgba(0,114,255,0.5), 0 6px 15px rgba(0,198,255,0.4);
}


/* Initially position icon outside */
.icon {
    position: absolute;
    right: 10px;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* On hover, slide the icon in */
.login-button:hover .icon {
    opacity: 1;
    transform: translateX(-10px);
}

/* On click, slide the icon out */
.login-button:active .icon {
    transform: translateX(30px);
    opacity: 0;
}


/* Login Form Shake Effect on Hover 
.login-form:hover {
    animation: shake 0.5s ease; 
    animation-fill-mode: forwards; 
}*/
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}
/* Forgot Password Styling */
#forgotPasswordModal .modal-content {
    background: rgba(30, 60, 114, 0.2); /* same blue tint */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 114, 255, 0.3), 0 6px 15px rgba(0, 198, 255, 0.2);
    transition: transform 0.4s ease, box-shadow 0.3s ease;
    color: #fff;
}

/* Add hover/focus interactivity (same as login) */
#forgotPasswordModal .modal-content:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 114, 255, 0.5), 0 8px 25px rgba(0, 198, 255, 0.4);
}

/* Make inner form inputs and labels fit the glass look */
#forgotPasswordModal label {
    color: #fff;
    font-weight: 500;
}

#forgotPasswordModal input.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

#forgotPasswordModal input.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Buttons consistent with login theme */
#forgotPasswordModal .btn-primary,
#forgotPasswordModal .btn-success {
    background: linear-gradient(135deg, #0072ff, #00c6ff);
    border: none;
    font-weight: 600;
}

#forgotPasswordModal .btn-primary:hover,
#forgotPasswordModal .btn-success:hover {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
}

/* Modal header styling */
#forgotPasswordModal .modal-header {
    background: rgba(31, 58, 82, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Close button tweak */
#forgotPasswordModal .btn-close {
    filter: invert(1);
}

.forgot-password {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
}

.forgot-password a {
    color: green;
}

.forgot-password:hover {
    text-decoration: underline;
}

.error {
    color: red;
    margin-top: 5px;
    font-size: 12px;
    font-weight: bold;
}

/* Shake Animation */
@keyframes shake {
    0% {
        transform: translate(0);
    }

    25% {
        transform: translate(-5px, 0);
    }

    50% {
        transform: translate(5px, 0);
    }

    75% {
        transform: translate(-5px, 0);
    }

    100% {
        transform: translate(0);
    }
}


/* ---------------------------------------------------------------------------------------------------------------------------------------------------------
   📱 Media Queries for Responsiveness
-------------------------------------------------- */



/*MEDIA QUERY FOR BACKGROUND SECTION*/

/* === Circles Responsive Layout === */

/* Extra Large Monitors (≥2080px) */
/* === Extra Large Monitors (≥2080px) === */


@media (max-width: 1279px) and (min-width: 1024px) {

  /* ===== HEADER SECTION ===== */
  header {
    padding: 8px 30px;
    justify-content: space-between;
  }

  .social-media-icons {
    margin-left: 0;
  }

  .social-media-icons a p {
    font-size: 14px;
    line-height: 1.2;
  }

  /* LOGO */
  .logo-container {
    margin-left: 40px;
    margin-right: 20px;
    margin-top: 230px; /* reduced from 260px */
  }

  .logo-video {
    width: 220px; /* smaller, fits better */
    height: auto;
  }

  /* ===== LOGIN SECTION ===== */
  #login {
    padding: 20px;
    height: 100vh;
    background-position: center;
  }

  .login-form {
    width: 400px; /* reduced to fit 1024–1279 viewports */
    padding: 1.8rem;
    border-radius: 15px;
    background: rgba(30, 60, 114, 0.3);
    box-shadow: 0 6px 18px rgba(0, 114, 255, 0.3);
  }

  .login-form h2 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .login-form p {
    font-size: 14px;
    line-height: 1.4;
  }

  .login-form label {
    font-size: 14px;
  }

  .login-form input {
    font-size: 14px;
    padding: 8px;
  }

  .forgot-password {
    font-size: 13px;
    margin-top: 8px;
  }

  /* Button adjustments */
  .login-button {
    width: 45% !important; /* more natural width */
    font-size: 15px;
    padding: 10px;
    margin-top: 20px;
  }

  /* Slightly smaller hover animation for performance */
  .login-button:hover {
    transform: scale(0.97);
  }

  /* Password toggle button refinement */
  .toggle-password {
    font-size: 1rem;
    right: 5px;
  }

  /* Form slide-in animation offset correction */
  @keyframes slideIn {
    0% {
      left: -450px;
    }

    100% {
      left: 50%;
      transform: translate(-50%, -50%);
    }
  }

  /* Adjust forgot-password text line */
  .forgot-password a {
    font-size: 13px;
  }

  /* Input shadow tweak */
  .login-form input:focus {
    background: rgba(0, 198, 255, 0.15);
    transform: scale(1.01);
  }

  /* Ensures the background overlay stays balanced */
  #login::before {
    background: rgba(0, 0, 0, 0.45);
  }

}

@media (max-width: 1023px) and (min-width: 768px) {

  /* === MAIN LOGIN SECTION === */
  #login {
    display: flex;
    flex-direction: row;
    justify-content: center; /* centers both sides */
    align-items: center;
    gap: 20px; /* space between logo/text and form */
    height: 100vh;
    padding: 40px;
    background-size: cover;
    background-position: center;
    box-sizing: border-box;
    position: relative;
  }

  /* ===== LEFT SIDE: LOGO + TEXT ===== */
  .logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
    text-align: left;
    margin-left: 20px; /* ✅ smaller margin to prevent pushing form too far */
  }

  .logo-video {
    width: 190px;
    height: auto;
    object-fit: contain;
  }

  .brand-text {
    font-size: 18px;
    color: #fff;
    line-height: 1.4;
    margin-top: 10px;
    max-width: 250px;
  }

  /* ===== RIGHT SIDE: LOGIN FORM ===== */
  .login-form {
    flex: 1;
    width: 320px;
    max-width: 350px;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    background: rgba(30, 60, 114, 0.35);
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.25);
    position: relative;

    /* ✅ adjustment to center it nicely */
    margin-left: -190px; /* move form slightly left */
    margin-top: -60px; /* optional: lift it up slightly */
  }

  .login-form h2 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .login-form p {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 15px;
  }

  .login-form label {
    font-size: 13px;
  }

  .login-form input {
    font-size: 13px;
    padding: 8px;
    border-radius: 6px;
  }

  .forgot-password {
    font-size: 12px;
    margin-top: 10px;
  }

  .login-button {
    width: 65%;
    font-size: 14px;
    padding: 9px;
    border-radius: 25px;
    margin-top: 20px;
  }

  .login-button:hover {
    transform: scale(0.96);
  }

  .toggle-password {
    font-size: 0.95rem;
    right: 6px;
  }

  .login-form input:focus {
    background: rgba(0, 198, 255, 0.15);
    transform: scale(1.01);
  }

  #login::before {
    background: rgba(0, 0, 0, 0.45);
  }

  .social-media-icons {
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
  }

  .social-media-icons a p {
    font-size: 13px;
  }
}

/* === Tablets Portrait + Mobile (≤767px) === */





/******GOOGLE STANDARD MEDIA QUERY RANGES******/
/* ✅ Small / short phones or landscape */

@media (max-width: 414px) and (min-height: 412px){
 #login {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;          /* ✅ fits screen without forcing overscroll */
  padding: 25px;
  background-size: cover;
  background-position: center;
  box-sizing: border-box;
  position: relative;
}

  /* ===== LEFT SIDE: LOGO + TEXT ===== */
  .logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
    text-align: left;
    margin-left: 10px; /* smaller margin */
    transform: translateY(-20px); /* lift slightly for short height */
    margin-top:10px;
  }

  .logo-video {
    width: 200px;
    height: auto;
    object-fit: contain;
  }

  

  /* ===== RIGHT SIDE: LOGIN FORM ===== */
.login-form {
  width: 100%;
  max-width: 350px;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;

  /* ✅ remove those offsets */
  margin: 0;
  position: relative;
  top: 40px !important;
  left: 0;
  transform: none;
  
}
  .login-form h2 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .login-form p {
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .login-form label {
    font-size: 12px;
  }

  .login-form input {
    font-size: 12px;
    padding: 7px;
    border-radius: 5px;
  }

  .forgot-password {
    font-size: 11px;
    margin-top: 8px;
  }

  .login-button {
    width: 70%;
    font-size: 13px;
    padding: 8px;
    border-radius: 25px;
    margin-top: 15px;
  }

  .login-button:hover {
    transform: scale(0.95);
  }

  .toggle-password {
    font-size: 0.85rem;
    right: 5px;
  }

  .login-form input:focus {
    background: rgba(0, 198, 255, 0.15);
    transform: scale(1.01);
  }

  #login::before {
    background: rgba(0, 0, 0, 0.45);
  }

  .social-media-icons {
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
  }

  .social-media-icons a p {
    font-size: 18px;
  }

  @keyframes login-enter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-form {
  position: relative; /* in normal flow so #login flex centers it */
  opacity: 0;
  transform-origin: center center;
  animation: none; /* defensive */
}

.login-form.show {
  animation: login-enter .45s cubic-bezier(.22,.9,.35,1) both;
  /* both keeps final state so it stays centered after anim */
}
}

@media (max-width: 599px) and (max-height: 667px){



 /* === MAIN LOGIN SECTION === */
#login {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh !important;          /* ✅ fits screen without forcing overscroll */
  padding: 25px;
  background-size: cover;
  background-position: center;
  box-sizing: border-box;
  position: relative;
}

  /* ===== LEFT SIDE: LOGO + TEXT ===== */
  .logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
    text-align: left;
    margin-left: 10px; /* smaller margin */
    transform: translateY(-20px); /* lift slightly for short height */
    margin-top:10px;
  }

  .logo-video {
    width: 200px;
    height: auto;
    object-fit: contain;
  }

  

  /* ===== RIGHT SIDE: LOGIN FORM ===== */
.login-form {
  width: 100%;
  max-width: 350px;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;

  /* ✅ remove those offsets */
  margin: 0;
  position: relative;
 top: 40px !important;
  left: 0;
  transform: none;
}
  .login-form h2 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .login-form p {
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .login-form label {
    font-size: 12px;
  }

  .login-form input {
    font-size: 12px;
    padding: 7px;
    border-radius: 5px;
  }

  .forgot-password {
    font-size: 11px;
    margin-top: 8px;
  }

  .login-button {
    width: 70%;
    font-size: 13px;
    padding: 8px;
    border-radius: 25px;
    margin-top: 15px;
  }

  .login-button:hover {
    transform: scale(0.95);
  }

  .toggle-password {
    font-size: 0.85rem;
    right: 5px;
  }

  .login-form input:focus {
    background: rgba(0, 198, 255, 0.15);
    transform: scale(1.01);
  }

  #login::before {
    background: rgba(0, 0, 0, 0.45);
  }

  .social-media-icons {
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
  }

  .social-media-icons a p {
    font-size: 18px;
  }

  @keyframes login-enter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-form {
  position: relative; /* in normal flow so #login flex centers it */
  opacity: 0;
  transform-origin: center center;
  animation: none; /* defensive */
}

.login-form.show {
  animation: login-enter .45s cubic-bezier(.22,.9,.35,1) both;
  /* both keeps final state so it stays centered after anim */
}
}
@media (max-width: 599px) and (min-height: 668px) and (max-height: 812px){


  
#login {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;          /* ✅ fits screen without forcing overscroll */
  padding: 25px;
  background-size: cover;
  background-position: center;
  box-sizing: border-box;
  position: relative;
}

  /* ===== LEFT SIDE: LOGO + TEXT ===== */
  .logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
    text-align: left;
    margin-left: 10px; /* smaller margin */
    transform: translateY(-20px); /* lift slightly for short height */
    margin-top:10px;
  }

  .logo-video {
    width: 200px;
    height: auto;
    object-fit: contain;
  }

  

  /* ===== RIGHT SIDE: LOGIN FORM ===== */
.login-form {
  width: 100%;
  max-width: 350px;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;

  /* ✅ remove those offsets */
  margin: 0;
  position: relative;
 top: 40px !important;
  left: 0;
  transform: none;
}
  .login-form h2 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .login-form p {
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .login-form label {
    font-size: 12px;
  }

  .login-form input {
    font-size: 12px;
    padding: 7px;
    border-radius: 5px;
  }

  .forgot-password {
    font-size: 11px;
    margin-top: 8px;
  }

  .login-button {
    width: 70%;
    font-size: 13px;
    padding: 8px;
    border-radius: 25px;
    margin-top: 15px;
  }

  .login-button:hover {
    transform: scale(0.95);
  }

  .toggle-password {
    font-size: 0.85rem;
    right: 5px;
  }

  .login-form input:focus {
    background: rgba(0, 198, 255, 0.15);
    transform: scale(1.01);
  }

  #login::before {
    background: rgba(0, 0, 0, 0.45);
  }

  .social-media-icons {
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
  }

  .social-media-icons a p {
    font-size: 18px;
  }

  @keyframes login-enter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-form {
  position: relative; /* in normal flow so #login flex centers it */
  opacity: 0;
  transform-origin: center center;
  animation: none; /* defensive */
}

.login-form.show {
  animation: login-enter .45s cubic-bezier(.22,.9,.35,1) both;
  /* both keeps final state so it stays centered after anim */
}
}

/* TEST VIEW PORT 500 * 966  ✅*/
@media (max-width: 599px) and (min-height: 933px) and (max-height: 1000px){

  
/* === MAIN LOGIN SECTION === */
 #login {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;          /* ✅ fits screen without forcing overscroll */
  padding: 25px;
  background-size: cover;
  background-position: center;
  box-sizing: border-box;
  position: relative;
}

  /* ===== LEFT SIDE: LOGO + TEXT ===== */
  .logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
    text-align: left;
    margin-left: 10px; /* smaller margin */
    transform: translateY(-20px); /* lift slightly for short height */
    margin-top:10px;
  }

  .logo-video {
    width: 200px;
    height: auto;
    object-fit: contain;
  }

  

  /* ===== RIGHT SIDE: LOGIN FORM ===== */
.login-form {
  width: 100%;
  max-width: 350px;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;

  /* ✅ remove those offsets */
  margin: 0;
  position: relative;
 top: 40px !important;
  left: 0;
  transform: none;
}
  .login-form h2 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .login-form p {
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .login-form label {
    font-size: 12px;
  }

  .login-form input {
    font-size: 12px;
    padding: 7px;
    border-radius: 5px;
  }

  .forgot-password {
    font-size: 11px;
    margin-top: 8px;
  }

  .login-button {
    width: 70%;
    font-size: 13px;
    padding: 8px;
    border-radius: 25px;
    margin-top: 15px;
  }

  .login-button:hover {
    transform: scale(0.95);
  }

  .toggle-password {
    font-size: 0.85rem;
    right: 5px;
  }

  .login-form input:focus {
    background: rgba(0, 198, 255, 0.15);
    transform: scale(1.01);
  }

  #login::before {
    background: rgba(0, 0, 0, 0.45);
  }

  .social-media-icons {
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
  }

  .social-media-icons a p {
    font-size: 18px;
  }

  @keyframes login-enter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-form {
  position: relative; /* in normal flow so #login flex centers it */
  opacity: 0;
  transform-origin: center center;
  animation: none; /* defensive */
}

.login-form.show {
  animation: login-enter .45s cubic-bezier(.22,.9,.35,1) both;
  /* both keeps final state so it stays centered after anim */
}
}


/*ANCHOR POINT (IPHONE 16 PRO MAX) ✅*/
@media (max-width: 430px) and (max-height: 932px) {

  /* === MAIN LOGIN SECTION === */
  #login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 18px;
    background-size: cover;
    background-position: center;
    box-sizing: border-box;
    position: relative;
  }

  /* ===== LEFT SIDE: LOGO + TEXT ===== */
  .logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
    text-align: left;
    margin-left: 8px;
    transform: translateY(-15px);
    margin-top: 26px;
  }

  .logo-video {
    width: 170px;
    height: auto;
    object-fit: contain;
  }

  /* ===== RIGHT SIDE: LOGIN FORM ===== */
  .login-form {
    width: 100%;
    max-width: 320px;
    padding: 1.2rem;
    border-radius: 10px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    top: 20px !important; /* slightly raised */
    transform:translate(1%) !important;
  }

  .login-form h2 {
    font-size: 16px;
    margin-bottom: 5px;
  }

  .login-form p {
    font-size: 11px;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .login-form label {
    font-size: 11px;
  }

  .login-form input {
    font-size: 11px;
    padding: 6px;
    border-radius: 5px;
  }

  .forgot-password {
    font-size: 10px;
    margin-top: 6px;
  }

  .login-button {
    width: 75%;
    font-size: 12px;
    padding: 7px;
    border-radius: 20px;
    margin-top: 12px;
  }

  .login-button:hover {
    transform: scale(0.95);
  }

  .toggle-password {
    font-size: 0.8rem;
    right: 5px;
  }

  .login-form input:focus {
    background: rgba(0, 198, 255, 0.15);
    transform: scale(1.01);
  }

  #login::before {
    background: rgba(0, 0, 0, 0.45);
  }

  /* ===== SOCIAL ICONS ===== */
  .social-media-icons {
    flex-direction: column;
    align-items: center;
    margin-top: 12px;
  }

  .social-media-icons a p {
    font-size: 16px;
  }

  /* ===== ENTER ANIMATION ===== */
  @keyframes login-enter {
    from {
      opacity: 0;
      transform: translateY(24px) scale(.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .login-form {
    opacity: 0;
    transform-origin: center center;
    animation: none;
  }

  .login-form.show {
    animation: login-enter .45s cubic-bezier(.22, .9, .35, 1) both;
  }
}




@media (max-width: 767px) and (min-width: 600px)and (max-height: 568px){
/* === MAIN LOGIN SECTION === */
  #login {
    display: flex;
    flex-direction: row;
    justify-content: center; /* centers both sections */
    align-items: center;
    gap: 20px; /* spacing between logo and form */
    height: 100vh;
    padding: 30px;
    background-size: cover;
    background-position: center;
    box-sizing: border-box;
    position: relative;
  }

  /* ===== LEFT SIDE: LOGO + TEXT ===== */
  .logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
    text-align: left;
    margin-left: 15px;
    transform: translateY(-10px); /* gentle upward lift */
    z-index: 2; /* ensures logo stays in front */
    margin-top: 180px;
  }

  .logo-video {
    width: 190px;
    height: auto;
    object-fit: contain;
  }

  .brand-text {
    font-size: 17px;
    color: #fff;
    line-height: 1.4;
    margin-top: 8px;
    max-width: 240px;
  }

  /* ===== RIGHT SIDE: LOGIN FORM ===== */
  .login-form {
    flex: 1;
    width: 280px;
    max-width: 300px;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    position: relative;

    /* ✅ fine-tuned placement */
    margin-left: -120px; /* slightly left so both fit nicely */
    margin-top: -80px;   /* lift a bit upward */
    z-index: 1;
  }

  .login-form h2 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .login-form p {
    font-size: 12px;
    line-height: 1.35;
    margin-bottom: 12px;
  }

  .login-form label {
    font-size: 12px;
  }

  .login-form input {
    font-size: 12px;
    padding: 7px;
    border-radius: 5px;
  }

  .forgot-password {
    font-size: 11px;
    margin-top: 8px;
  }

  .login-button {
    width: 70%;
    font-size: 13px;
    padding: 8px;
    border-radius: 25px;
    margin-top: 15px;
  }

  .login-button:hover {
    transform: scale(0.95);
  }

  .toggle-password {
    font-size: 0.85rem;
    right: 5px;
  }

  .login-form input:focus {
    background: rgba(0, 198, 255, 0.15);
    transform: scale(1.01);
  }

  #login::before {
    background: rgba(0, 0, 0, 0.45);
  }

  .social-media-icons {
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
  }

  .social-media-icons a p {
    font-size: 12px;
  }
}