/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* CUERPO */
body, html {
    height: 100%;
    background-color: #f4f7fc;
}

/* CONTENEDOR GENERAL */
.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* COLUMNA DE IMAGEN */
.imagen {
    flex: 1;
    background-color: #eaf1fb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* COLUMNA DE LOGIN */
.login {
    flex: 1;
    background: linear-gradient(135deg, #dbe9ff, #f2f8ff);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

/* CAJA DE LOGIN */
.login-box {
    background-color: #ffffff;
    padding: 40px 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    animation: fadeIn 0.7s ease-in-out;
}

/* TITULO */
.login-box h2 {
    color: #003366;
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}

/* GRUPOS DE INPUT */
.input-group {
    margin-bottom: 22px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.input-group input {
    width: 100%;
    padding: 13px 15px;
    border-radius: 10px;
    border: 1.8px solid #ccc;
    font-size: 15px;
    transition: 0.3s ease;
    background-color: #f9fbfd;
}

.input-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
    background-color: #ffffff;
    outline: none;
}

.input-group input::placeholder {
    color: #aaa;
    font-style: italic;
}

/* BOTÓN */
button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 5px 12px rgba(0, 86, 179, 0.3);
}

button:hover {
    background: linear-gradient(90deg, #0056b3, #003d80);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 64, 138, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .imagen {
        display: none;
    }

    .login {
        flex: unset;
        height: 100%;
        padding: 20px;
    }

    .login-box {
        max-width: 100%;
    }
}
