/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Body and container */
body {
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    display: flex;
    width: 55%;
    height: 55vh;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.left-section {
    background: #fff;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.left-section img {
    width: 70%;
    margin-bottom: 20px;
}

.left-section p {
    font-size: 16px;
    color: #007bff;
}

.right-section {
    background-color: #2d3192;
    width: 50%;
    padding: 40px;
    color: white;
    position: relative;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

/* Form and input styling */
h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 30px;
    font-size: 16px;
}

.input-container {
    position: relative;
    margin-bottom: 20px;
}

.input-container input {
    width: 100%;
    padding: 10px 35px;
    border: none;
    border-bottom: 2px solid white;
    background-color: transparent;
    color: white;
    font-size: 16px;
    outline: none;
}

.input-container label {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 16px;
    pointer-events: none;
    transition: 0.3s ease;
    color: #bbb;
}

.input-container input:focus ~ label,
.input-container input:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 12px;
    color: #007bff;
}

/* Icons in input */
.input-container i {
    position: absolute;
    top: 12px;
    right: 10px;
    color: white;
    cursor: pointer;
}

/* Remember section */
.remember-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-section input {
    margin-right: 10px;
}

.remember-section a {
    color: white;
    text-decoration: none;
}

.remember-section a:hover {
    text-decoration: underline;
}

/* Login button */
.btn-login {
    width: 100%;
    padding: 10px;
    background-color: white;
    color: #2d3192;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-login:hover {
    background-color: #ccc;
}

/* Sign up text */
.signup-text {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.signup-text a {
    color: #007bff;
    text-decoration: none;
}

.signup-text a:hover {
    text-decoration: underline;
}

/* Footer */
.dashboard-footer {
    background-color: #2d3192;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

.dashboard-footer .social-links {
    margin: 10px 0;
}

.dashboard-footer .social-links a {
    margin: 0 10px;
    text-decoration: none;
}

.dashboard-footer .social-icon {
    width: 30px;
    height: 30px;
}

/* Responsive Design */

/* Mobile (up to 600px) */
@media (max-width: 600px) {
    body {
        height: auto;
        padding: 20px;
    }

    .container {
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    .left-section, .right-section {
        width: 100%;
        padding: 20px;
    }

    h2 {
        font-size: 24px;
    }

    .input-container input {
        padding: 8px 30px;
        font-size: 14px;
    }

    .input-container label {
        font-size: 14px;
    }

    .close-btn {
        font-size: 20px;
    }

    .btn-login {
        font-size: 16px;
    }

    .signup-text {
        font-size: 12px;
    }
}

/* Tablet (601px to 768px) */
@media (min-width: 601px) and (max-width: 768px) {
    .container {
        width: 85%;
        height: auto;
    }

    .left-section, .right-section {
        padding: 30px;
    }

    h2 {
        font-size: 28px;
    }

    p, .input-container label {
        font-size: 14px;
    }

    .btn-login {
        font-size: 17px;
    }

    .signup-text {
        font-size: 13px;
    }
}

/* Desktop (769px and above) */
@media (min-width: 769px) {
    .container {
        width: 55%;
        height: 55vh;
    }

    .left-section img {
        width: 60%;
    }

    .input-container input {
        font-size: 16px;
    }
}
