﻿/* Reset de márgenes y relleno */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General para el sitio */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
}

/* Estilo específico del login */
.login-page {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('../img/bg_login.jpg') no-repeat center center/cover;
}

/* Contenedor del login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 10px;
}

/* Formulario */
.login-form {
    background: rgba(238, 238, 238, 0.9);
    padding: 10px;
    border: 1px solid white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

    /* Título */
    .login-form h2 {
        color: white;
        margin-bottom: 20px;
    }

    /* Campos de entrada */
    .login-form input {
        width: 100%;
        padding: 10px;
        margin-bottom: 15px;
        border: 1px solid white;
        border-radius: 5px;
        background: transparent;
        color: white;
        font-size: 14px;
    }

        /* Placeholder visible */
        .login-form input::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }

    /* Enlace de recuperación */
    .login-form a {
        display: block;
        margin-bottom: 20px;
        font-size: 12px;
        color: white;
        text-decoration: none;
        opacity: 0.8;
        transition: opacity 0.3s;
    }

        .login-form a:hover {
            opacity: 1;
        }

    /* Botón */
    .login-form button {
        width: 100%;
        padding: 10px;
        border: none;
        border-radius: 5px;
        background: white;
        color: black;
        font-size: 16px;
        cursor: pointer;
        transition: background 0.3s;
    }

        .login-form button:hover {
            background: #f0f0f0;
        }

.container {
    display: grid;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    box-sizing: border-box;
    grid-template-columns: 1fr; /* Diseño por defecto: 1 columna */
}

.box {
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    color: #fff;
}

.box1 {
    flex: 0 0 33.33%; /* Ocupa un tercio del contenedor */   
}

.box2 {
    flex: 0 0 66.67%; /* Ocupa dos tercios del contenedor */
}

.columna {
    gap: 15px; /* Espaciado interno entre los controles */
}

/* Contenedor del formulario */
.form-container {
    display: flex; /* Configura el contenedor como Flexbox */
     /* flex-wrap: wrap;Permite que los elementos pasen a otra línea si es necesario */
    gap: 10px; /* Espacio entre los controles */
    align-items: center; /* Alinea verticalmente los controles */
    justify-content: flex-start; /* Alineación horizontal */
    border: 1px solid lightgray;
    padding:0px 10px 10px 10px;
}

    /* Estilo para cada control individual */
    .form-container .dxWebControl {
        flex: 0 0 auto; /* Los controles ocupan solo el ancho necesario */
        width: auto; /* Ancho ajustable por el contenido */
        vertical-align:middle !important;
    }

/* Responsividad */
@media (max-width: 768px) {
    .box {
        flex: 0 0 100%; /* Ambos ocupan el 100% del ancho */
    }

    .form-container {
        flex-direction: column; /* Cambia a disposición vertical */
        gap: 15px; /* Mayor espacio entre controles */
    }

        .form-container .dxWebControl {
            width: 100%; /* Los controles ocupan todo el ancho del contenedor */
        }
}

    @media (min-width: 768px) {
        .container {
            grid-template-columns: repeat(2, 1fr); /* Dos columnas iguales */
        }

        .login-form {
            padding: 30px;
            border-radius: 15px;
        }

            .login-form h2 {
                font-size: 24px;
            }

            .login-form input {
                font-size: 16px;
            }

            .login-form button {
                font-size: 18px;
            }
    }

    @media (min-width: 1200px) {
        .login-container {
            padding: 20px;
        }

        .login-form {
            max-width: 500px;
        }
    }

/* Estilos para la MasterPage */

.master-page {
    background: none; /* Quita la imagen de fondo */
    height: auto; /* Ajusta la altura según el contenido */
    font-family: 'Segoe UI'; /* Conserva la tipografía */
    margin: 0;
    padding: 0;
    background-color: steelblue;
}

/* Header */
.master-header {
    background-color: black;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: white;
}

    .master-header .logo {
        flex-grow: 1;
        display: flex;
        justify-content: center; /* Centra el logo en dispositivos grandes */
        align-items: center;
    }

    .master-header .user-label {
        padding-right: 10px;
        font-size: 14px;
    }

/* Menu */
.master-menu {
    width: 100%;
    background-color: black;
    display: table;
    justify-content: flex-start;
    align-items: center;
    margin: 0 auto;
    float: none !important;
}

/* Barra de título */
.master-title {
    width: 100%;
    background-color: SteelBlue;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

/* Contenedor de contenido */
.master-content {
    background-color: white;
    padding: 0px 20px;
    min-height: 100vh;
}

/* Menú flotante en móvil */
.menu-flotante {
    display: none; /* Menú oculto en móvil */
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: black;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
}
    /* Mostrar el menú flotante en móviles */
    @media (max-width: 768px) {
        .master-header {
            justify-content: center; /* En móviles, centramos todos los elementos */
        }

            .master-header .logo {
                flex-grow: 0; /* Deshabilita el "grow" para el logo en móviles */
            }

            .master-header .user-label {
                display: none; /* Ocultamos el label del usuario */
            }

        .master-title {
            font-size: 16px;
        }

        /* Hacemos visible el menú flotante en móvil */
        .menu-flotante {
            display: block;
        }

        /* Ocultar el menú en modo móvil */
        .master-menu {
            /*display: none;*/
            height: 0px;
        }
        
        .master-content {
            background-color: white;
            padding: 0px;
            min-height: 100vh;
        }
    }
