/* ======== ESTILOS GENERALES ======== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #0e9e85, #0b745e);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ======== CONTENEDOR PRINCIPAL ======== */

.container {
    width: 950px;
    height: 600px;
    background: #fff;
    display: flex;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    animation: fadeIn .9s ease-out;
}

/* Animación */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ======== PANEL IZQUIERDO ======== */

.side-panel {
    width: 50%;
    background-image: url('https://www.kompletcloud.net/img/GifKomplet.gif');
    background-size: cover;
    background-position: center;
    position: relative;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.0);
}

.side-logo {
    width: 70%;
    position: absolute;
    top: 20%;
    left: 15%;
    filter: brightness(1000%);
}

.side-text {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: #fff;
    font-size: 18px;
    width: 80%;
    line-height: 1.4;
}

/* ======== LOGIN BOX ======== */

.login-box {
    width: 50%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-logo {
    width: 55%;
    margin: 0 auto 40px auto;
    display: block;
}

/* ======== INPUTS ======== */

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid #ccc;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-bottom: 2px solid #0e9e85;
}

.input-group label {
    position: absolute;
    top: 14px;
    left: 5px;
    font-size: 16px;
    color: #777;
    transition: 0.3s;
    pointer-events: none;
}

.input-group input:focus + label,
.input-group input:valid + label {
    font-size: 12px;
    top: -10px;
    color: #0e9e85;
}

/* ======== BOTÓN LOGIN ======== */

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #0e9e85, #0b745e);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-login:hover {
    opacity: 0.85;
}

/* ======== EXTRAS ======== */

.extras {
    text-align: center;
    margin-top: 25px;
}

.extras a {
    color: #0e9e85;
    text-decoration: none;
}

.btn-sub {
    display: block;
    margin-top: 10px;
    border: 2px solid #0e9e85;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-sub:hover {
    background: #0e9e85;
    color: #fff;
}

/* ======== FOOTER ======== */

.footer {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: #555;
}

/* ======== RESPONSIVE ======== */

@media (max-width: 900px) {

    .container {
        width: 90%;
        height: auto;
        flex-direction: column;
    }

    .side-panel {
        display: none;
    }

    .login-box {
        width: 100%;
        padding: 40px;
    }

    .main-logo {
        width: 60%;
    }
}
