/* Fullscreen soft pastel background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #ddfef8; 
    z-index: -1;
}

/* Body layout for split screen */
body {
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Split container */
.split-container {
    display: flex;
    width: 80%;
    max-width: 1000px;
    height: 70%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

/* Left side */
.left-side {
    width: 50%;
    background-color: #1e1b42;
    background-image: 
        linear-gradient(135deg, rgba(30,27,66,0.85), rgba(32,141,133,0.85)),
        url("../images/login.jpg"); 
    background-position: center center, center center; 
    background-size: cover, 60%;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;   
    padding: 40px;
    text-align: center;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
}

/* Heading */
.left-side h1 {
    font-size: 2.5em; 
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 1px 2px 6px rgba(0,0,0,0.35);
}

/* Optional subtext */
.left-side p {
    font-size: 1.1em;
    line-height: 1.5;
    max-width: 300px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.25);
    margin: 0;
}

/* Right side */
.right-side {
    width: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f7f7f7;
    padding: 20px;
}

/* Login container */
.login-container {
    width: 320px;
    padding: 35px 30px;
    border-radius: 15px;
    background-color: #ffffff; 
    text-align: center;
    color: #333;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* Header */
h2 {
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 2em;
    color: #208d85; 
}

/* Input fields styling */
input[type="email"],
input[type="password"] {
    width: 90%;
    padding: 12px 15px;
    margin: 10px 0 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: 0.3s;
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #208d85;
    box-shadow: 0 0 8px rgba(32, 141, 133, 0.2);
}

/* Submit button styling */
input[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, #1e1b42, #208d85); 
    color: white;
    padding: 12px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: 0.3s;
}

input[type="submit"]:hover {
    background-color: #1a817a; 
}

/* Error message styling */
.error {
    color: #d0342c; 
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 0.95em;
}

/* Soft fade-in animation */
.login-container {
    animation: softFade 0.8s ease-in-out;
}

@keyframes softFade {
    0% {opacity: 0; transform: scale(0.95);}
    100% {opacity: 1; transform: scale(1);}
}

/* Responsive design */
@media (max-width: 900px) {
    .split-container {
        flex-direction: column;
        height: auto;
    }
    .left-side, .right-side {
        width: 100%;
        height: 50vh;
    }
    .login-container {
        width: 90%;
        margin: 20px 0;
    }
}
