/* Main Section Styling */
.main-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f0f9ff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    width: 80%;
    max-width: 1000px;
    margin: 50px auto; /* Center the main section with top and bottom margin */
    transition: all 0.3s ease;
}

.main-section:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}


/* CAPTCHA input field error styling */
#error {
    color: red;
    font-size: 12px;
    margin-top: 5px;
    display: none;
  }
  
  input.error {
    border: 2px solid red;
    background-color: #ffcccc;
  }
  
  /* Show error message */
  .error.show {
    display: block;
  }
  
  /* Pop-up modal styling */
  .error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .error-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 80%;
    animation: modal-animation 0.3s ease-in-out;
  }
  
  .modal-button {
    background-color: #ff6347;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 20px;
  }
  
  .modal-button:hover {
    background-color: #e53e32;
  }
  
  @keyframes modal-animation {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
  }
  

/* Left-Side Styling */
.left-side {
    flex: 0.6;
    background: #e4f1ff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.left-side img {
    max-width: 100%; /* Increase the image width to fill more space */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transform: scale(1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    max-height: 400px; /* Set a max height to prevent the image from becoming too tall */
    object-fit: cover; /* Ensure the image fills the container properly */
}

.left-side img:hover {
    transform: scale(1.1); /* Increase scale on hover */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    filter: brightness(1.2); /* Slightly brighten the image on hover */
}

/* Right-Side Styling */
.right-side {
    flex: 1;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff, #b3d7f7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Heading Styling */
.right-side h2 {
    color: #1e40af;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Social Login Button */
.social-login {
    text-align: center;
    margin-bottom: 30px;
}

#google-login-button {
    background-color: #1e40af;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#google-login-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    background-color: #1e3a8a;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="submit"] {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
    background-color: #f1f8ff;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus {
    border-color: #1e40af;
    outline: none;
    box-shadow: 0 0 5px rgba(30, 64, 175, 0.4);
    background-color: #e6f2ff;
}

form input[type="submit"] {
    background-color: #1e40af;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    padding: 14px 20px;
    margin-bottom: 30px; /* Add margin bottom to submit button */
}

form input[type="submit"]:hover {
    background-color: #1e3a8a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Password Toggle Styling */
#toggle-password {
    color: #1e40af;
    font-size: 1rem;
}

#toggle-password:hover {
    color: #2563eb;
    cursor: pointer;
}

/* CAPTCHA Styling */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-text {
    padding: 12px 25px;
    background-color: #e6f2ff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
}

#refresh-captcha {
    background-color: #1e40af;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#refresh-captcha:hover {
    transform: scale(1.05);
    background-color: #1e3a8a;
}

/* Forgot Password Styling */
#forgot-password {
    text-align: right;
    color: #1e40af;
    font-size: 0.9rem;
    text-decoration: underline;
}

#forgot-password:hover {
    color: #2563eb;
}

/* Popup Styling */
#popup {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Darken the background for better contrast */
    z-index: 1000;
    animation: fadeIn 0.3s ease-out; /* Smooth fade-in effect */
}

.popup-content {
    color: black;
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif;
    background: linear-gradient(135deg, #a8d8ff, #6ab8ff); /* Light blue gradient background */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    width: 320px;
    max-width: 80%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); /* More defined shadow */
    animation: popUp 0.5s ease-out, rotateEffect 1s ease-in-out; /* Pop-up effect with rotation */
}

.popup-content h2 {
    margin-bottom: 20px;
    color: navy; /* Navy blue text color */
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3); /* Softer text shadow */
    letter-spacing: 1px;
    text-transform: uppercase; /* Make the text more stylish */
    transition: color 0.3s ease; /* Smooth transition for color change */
}

/* Buttons Styling */
.popup-content .button {
    margin: 12px;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    color: white; /* Ensure the font color is white */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.popup-content .next-button {
    background-color: #1e40af; /* Light blue color for next button */
    color: white; /* Navy text color for the button */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Light shadow for depth */
}

.popup-content .next-button:hover {
    background-color: #2a65d4; /* Darker blue on hover */
    color: #ffffff; /* White text on hover */
    transform: translateY(-6px) scale(1.05); /* Button hover effect with lift and slight scale */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* Stronger shadow on hover */
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popUp {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

@keyframes rotateEffect {
    0% {
        transform: rotate(0deg); /* Start at no rotation */
    }
    50% {
        transform: rotate(6deg); /* Slight rotation halfway */
    }
    100% {
        transform: rotate(0deg); /* Return to original position */
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .main-section {
        flex-direction: column;
        width: 95%;
        margin: 50px auto;
    }

    .left-side,
    .right-side {
        flex: unset;
        width: 100%;
    }

    .left-side img {
        display: none; /* Hide the image on small screens */
    }

    .popup-content {
        width: 90%;
    }
}




button {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    color: navy;
    
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
  }

  button:hover {
    background: linear-gradient(135deg, #5f10b0, #1b5bd9);
    transform: scale(1.05);
  }

  /* Modal Styles */
  .custom-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: 1000;
    animation: fadeIn 0.4s ease-out;
  }

  .modal-content {
    background: #ffffff;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease-out;
  }

  .modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #444;
  }

  .modal-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #666;
  }

  .modal-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
  }

  .modal-content input:focus {
    border-color: #6a11cb;
    outline: none;
  }

  .modal-content button {
    padding: 12px 20px;
 
    color: black;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s, background 0.3s;
  }

  .modal-content button:hover {
    background: linear-gradient(135deg, #5f10b0, #1b5bd9);
    transform: scale(1.03);
  }

  /* Animations */
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes slideIn {
    from {
      transform: translateY(-30px);
    }
    to {
      transform: translateY(0);
    }
  }