@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* Basic body styling for centering the login card */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: var(--text-color);
}

/* Container for the side panel and the login form */
.main-content {
    display: flex;
    border-radius: 10px;
    box-shadow: 0 4px 20px var(--shadow-color);
    /* overflow: hidden; */
    /* max-width: 850px; */
    width: 250vh;
    height: 100vh;
}

/* Styling for the side container (sidebar) */
.side-container {
    flex: 1;
    background: linear-gradient(to bottom right, #B55995, #181464);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.side-container .logo-container {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 50%;
    margin-bottom: 1rem;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.side-container img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.side-container h1 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}

/* Styling for the main login container */
.login-container {
    background-color: var(--card-background);
    padding: 3rem;
    width: 100%;
    max-width: 100vh;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    margin-top: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.password-container {
    position: relative;
    width: 100%;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: larger;
}

/* Container for the password input and icon */
.password-container {
    position: relative;
    width: 100%;
}

.input-group input {
    width: 150%;
    padding: 1rem;
    border: 1px solid var(--input-border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.password-container input {
    padding-right: 3rem;
    /* Add padding for the icon */
    width: 140%;
}

.input-group input:focus {
    outline: none;
    border-color: var(--input-focus-color);
    box-shadow: 0 0 5px var(--input-focus-color);
}

.input-group input::placeholder {
    color: #aaaaaa;
}

/* Styling for the toggle icon */
.toggle-password {
    position: absolute;
    right: -10rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    width: 24px;
    height: 24px;
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* Hide the eye-closed icon by default */
.toggle-password svg {
    display: none;
}

.toggle-password .eye-open {
    display: block;
}

button {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.forgot-password {
    margin-top: 1rem;
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.error-message {
    color: #D32F2F;
    margin-top: 1rem;
    display: none;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        max-width: 400px;
    }

    .side-container {
        padding: 2rem;
        flex: 0.8;
    }

    .login-container {
        padding: 0rem;
    }

    .input-group input {
        width: 100%;
    }

    .password-container input {
        padding-right: 3rem;
        width: 90%;
    }

    .toggle-password {
        right: 0rem;
    }
}