*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Estilo general */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to top, #3f71a0, #2a4d70);
}

/* Contenedor principal dividido en dos columnas */
.container {
    display: flex;
    width: min(900px, 95vw);
    max-width: 1100px;
    height: min(550px, 90vh);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

/* Sección izquierda con fondo de imagen */
.content {
    flex: 1;
    background-image: url('https://images.unsplash.com/photo-1572535183849-9c5a8c2aa94b?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MzJ8fGNyaXN0aWFuaXNtb3xlbnwwfHwwfHx8MA%3D%3D');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(255, 255, 255);
}

/* Texto de bienvenida */
.title {
    font-size: 2rem;
    font-weight: 1000;
    background: rgba(0, 0, 0, 0.4);
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
    width: 90%;
}

/* Caja de formulario */
.form_box {
    flex: 1;
    background: rgb(236, 236, 236);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.form_box h2 {
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    font-weight: 1000;
    text-align: center;
    color: #894514;
    margin-bottom: 20px;
    letter-spacing: 1px;

    /* Detalle decorativo */
    position: relative;
    padding-bottom: 10px;
}

.login_box_logo {
    width: 100%;
    max-width: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login_box_logo img {
    max-width: 70%;
    height: auto;
    display: block;
}

.message {
    text-align: center;
    color: red;
}

/* Caja interior del login */
.login_box {
    width: 80%;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
}

/* Título del login */
.login_box h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

/* Inputs */
.login_box input {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
}

/* Botón */
.login_box button {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background-color: #ff9a3c;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.login_box button:hover {
    background-color: #e68a2e;
}

.credits {
    margin-top: 15px;
    font-size: 0.8rem;
    text-align: center;
    color: rgba(0, 0, 0, 0.6);
}

.credits a {
    color: #1a6cd0;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.credits a:hover {
    text-decoration: underline;
}


/* Pantallas móviles y tablets en vertical */
@media (max-width: 1024px) and (orientation: portrait) {
    .container {
        width: 100%;
        height: 100vh;
        max-width: none;
        border-radius: 0;
        flex-direction: column;
        overflow-y: auto;
    }

    .content {
        min-height: 200px;
        font-size: 1.3rem;
        padding: 20px;
    }

    .title {
        font-size: 1.5rem;
        padding: 10px 15px;
    }

    .form_box {
        padding: 20px 15px;
    }

    .login_box {
        width: 90%;
        max-width: 400px;
    }
}

/* Pantallas móviles y tablets en horizontal */
@media (orientation: landscape) and (max-height: 700px) {
    body {
        min-height: 100vh;
        padding: 0;
        margin: 0;
    }

    .container {
        width: 100%;
        height: 100vh;
        max-width: none;
        border-radius: 0;
        flex-direction: row;
        overflow-y: auto;
    }

    .content {
        flex: 1;
        min-height: 100%;
    }

    .form_box {
        flex: 1;
        padding: 20px;
    }

    .login_box {
        width: 100%;
        height: 70vh;
    }

    .login_box img {
        width: 20%;;
    }
}
