/* BODY */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    min-height: 100vh;
}

/* CONTAINER */
.login-container {
    width: 100%;
    height: 100vh; /* ocupa toda la pantalla */
    display: flex;
    justify-content: center;
    align-items: center; /* centra vertical y horizontal */
    padding: 10px;
    box-sizing: border-box;
}

/* LOGIN BOX */
.login-box {
    display: flex;
    flex-direction: row;
    width: 90%;
    max-width: 900px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* PANEL IZQUIERDO */
.left {
    flex: 1;
    background: #1878D9;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.left h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.left p {
    font-size: 18px;
    margin: 0;
}


/* PANEL DERECHO (FORMULARIO) */
.right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;  /* centra verticalmente */
    align-items: center;      /* centra horizontalmente */
    padding: 40px 30px;
    min-height: 300px;        /* asegura altura mínima en PC */
    width: 100%;
    box-sizing: border-box;
}

/* FORMULARIO DENTRO DE .right */
.right form {
    width: 100%;
    max-width: 400px;  /* ancho máximo del formulario */
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* FORMULARIO */
.right h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

.input-group {
    width: 100%;
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    padding: 14px 12px;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid #ddd;
    outline: none;
    border-radius: 5px;
    box-sizing: border-box;
}

.input-group input:focus {
    border-color: #1878D9;
}

button {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    border: none;
    border-radius: 25px;
    background: #1878D9;
    color: #FFF;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #d3d3d3;
}

.error {
    color: red;
    margin-top: 10px;
    text-align: center;
    font-size: 16px;
}

/* RESPONSIVE: Tablets y celulares grandes */
@media (max-width: 900px) {
    .login-box {
        flex-direction: column;
        width: 95%;
    }

    .left {
        display: none; /* ocultar panel izquierdo */
    }

    .right {
        width: 100%;
        padding: 30px;
        justify-content: center; /* centra vertical */
    }

    .right h2 {
        font-size: 26px;
    }

    .input-group input {
        padding: 16px;
        font-size: 18px;
    }

    button {
        padding: 16px;
        font-size: 20px;
    }

    .error {
        font-size: 16px;
    }
}

/* RESPONSIVE: Celulares pequeños */
@media (max-width: 400px) {
    .right {
        padding: 20px;
    }

    .right h2 {
        font-size: 22px;
    }

    .input-group input {
        padding: 12px;
        font-size: 16px;
    }

    button {
        padding: 12px;
        font-size: 18px;
    }

    .error {
        font-size: 14px;
    }
}

