/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(120deg, #fdfbfb, #ebedee);
    overflow: hidden;
    position: relative;
    color: #2c276f;
}

/* Main Container */
.main-container {
    display: flex;
    flex-wrap: wrap;
    width: 80%; /* Set width to 80% of the viewport */
    max-width: 950px; /* Limit maximum width */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: fadeIn 1.5s ease-in-out;
    background: linear-gradient(135deg, rgba(44, 39, 111, 0.15), rgba(58, 50, 120, 0.3));
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Left Section */
.left-section {
    flex: 1;
    background: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.left-section h2 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #207752;
}

.left-section p {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.logo-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.logo {
    width: 350px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
    filter: brightness(1.3);
}

/* Right Section */
.right-section {
    flex: 1.2;
    background: -webkit-linear-gradient(-135deg, #f1c40f, #2ecc71);
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    position: relative;
}

.right-section h1 {
    font-size: 36px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.right-section p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    justify-content: center;
}

.glass-container {
    width: 100%;
    max-width: 380px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 1.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Form */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid transparent;
    border-radius: 8px;
    outline: none;
    color: #000000;
    transition: background 0.3s, border 0.3s, box-shadow 0.3s;
}

input:focus {
    background: rgb(255, 255, 255);
    border-color: #25e274;
    box-shadow: 0 0 12px rgba(1, 175, 16, 0.6);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
  }
  
  /* Make sure checkbox doesn't shrink on smaller screens */
  .remember-me input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
  }

.btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #ff7043, #ff5733);
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s;
    margin-bottom: 10px;
}

.btn:hover {
    transform: scale(1.05);
    border: 2px solid #f4f4f4;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}



/* Register Link */
.register-link {
    margin-left: 5px;
    font-size: 16px;
    color: rgb(255, 255, 255);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.register-link:hover {
    color: #ff7043;
    text-decoration: underline;
}

/* Forgot Password Link */
.forgot-password-link {
    margin-bottom: 5px;
    color: rgb(255, 255, 255);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    display: flex;
    justify-content: center;
}

.forgot-password-link:hover {
    color: #ff7043;
    text-decoration: underline;
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input {
    flex: 1;
    padding-right: 40px;
}

.eye-icon {
    position: absolute;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #555;
}

input[type="password"]::-ms-reveal,
input[type="password"]::-webkit-credentials-auto-fill-button {
  display: none;
}

input[type="password"]::-webkit-textfield-decoration-container {
  display: none !important;
}

.invalid-feedback {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}
/* Responsiveness */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        width: 90%; /* Increase width to 90% for smaller screens */
        max-width: 100%; /* Set max-width to 100% */
        justify-content: center;
        align-items: center;
    }

    .left-section {
        display: none; /* Hide left section on mobile */
    }

    .right-section {
        width: 100%; /* Full width */
        padding: 30px 20px; /* Adjusted padding */
        align-items: center;
        justify-content: center;
    }

    .logo {
        width: 250px; /* Resize logo for mobile */
    }

    .right-section h1 {
        font-size: 28px; /* Smaller header size on mobile */
    }

    .glass-container {
        width: 100%; /* Make glass container full width */
        max-width: 350px; /* Limit maximum width */
    }
}

@media (max-width: 480px) {
    .left-section h2 {
        font-size: 24px; /* Adjust font size for small screens */
    }

    .left-section p {
        font-size: 14px; /* Adjust font size for small screens */
    }

    .right-section h1 {
        font-size: 24px; /* Adjust font size for small screens */
    }

    .right-section p {
        font-size: 14px; /* Adjust font size for small screens */
    }

    .logo {
        width: 200px; /* Further reduce logo size for very small screens */
    }

    .btn {
        font-size: 14px; /* Reduce button font size */
    }
}
