:root {
    --primary-color: #5b318c;
    --secondary-color: #01602d;
    --text-color: #333;
    --light-text: #f8f9fa;
    --dark-overlay: rgba(0, 0, 0, 0.65);
    --card-bg: rgba(255, 255, 255, 0.9);
    --input-bg: #f8f9fa;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body, html {
    height: 100%;
    margin: 0;
    color: var(--text-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5%;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dark-overlay);
    z-index: 1;
}

.split-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    height: 600px;
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-side {
    flex: 1;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.image-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('static/img/background-login.jpg') center center;
    background-size: cover;
    opacity: 0.2;
}

.image-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.image-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.image-content p {
    font-size: 1.2rem;
    max-width: 80%;
    margin: 0 auto;
    line-height: 1.6;
}

.login-side {
    flex: 1;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 360px;
    padding: 40px;
    text-align: center;
    animation: fadeIn 0.5s ease forwards;
}

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

.logo {
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 500;
}

.input-group {
    width: 100%;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

input {
    width: 100%;
    padding: 15px;
    background-color: var(--input-bg);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

input:focus {
    box-shadow: 0 0 0 2px var(--primary-color);
}

button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    margin-top: 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

footer {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 15px;
    text-align: right;
    font-size: 0.85rem;
    color: var(--light-text);
    z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .split-container {
        flex-direction: column;
        height: auto;
        max-width: 480px;
    }
    
    .image-side, .login-side {
        flex: none;
    }
    
    .image-side {
        min-height: 200px;
        padding: 30px;
    }
    
    .image-content h2 {
        font-size: 1.8rem;
    }
    
    .image-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 1.5rem;
    }
    
    .split-container {
        width: 95%;
        margin: 15px;
    }
}