:root {
    --primary-color: #30336b;
    --accent-color: #8085d1;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px #8085d1;
    overflow: hidden;
    width: 900px;
    display: flex;
}

.login-sidebar {
    background: var(--primary-color);
    color: white;
    padding: 40px;
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-form {
    padding: 40px;
    width: 60%;
}

.form-title {
    color: var(--primary-color);
    margin-bottom: 30px;
    color: var(--primary-color);
    /* Color text iniciar sesion*/
    font-size: 2rem;
    font-weight: 600;
}

.login-text {
    color:black;
    text-align: center;
    margin-bottom: 0;
}

.form-label {
    color: black;
    /* Color text User and pass*/
    font-weight: 500;
}

.form-control {
    border: none;
    border-bottom: 2px solid #8085d1;
    border-radius: 0;
    padding: 12px 0;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--accent-color);
}

.btn-login {
    background: #30336b;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    width: 100%;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    z-index: 1;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #30336b;
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-login:hover::before {
    width: 100%;

}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px #8085d1;
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px #d4d7ff;
}

.form-control::placeholder {
    color: transparent;
    transition: color 0.3s ease;
}

.form-control:hover::placeholder {
    color: rgba(24, 30, 147, 0.4);
}

.form-control:focus::placeholder {
    color: #999;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
}



@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        width: 90%;
    }

    .login-sidebar {
        width: 100%;
        padding: 30px;

    }

    .login-form {
        width: 100%;
        padding: 30px;
    }

    .login-logo {
        text-align: center;
        padding: 30px 0;
    }

    .login-logo img {
        max-width: 70px;
        width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
}