@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
    --color-primario: #153744;
    --color-secundario: #336666;
    --fondo-claro: hsl(204, 45%, 96%);
    --fuente-principal: 'Roboto', sans-serif;
    --color-texto: #333;
}

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

body {
    font-family: var(--fuente-principal);
    background-color: var(--fondo-claro);
    color: var(--color-texto);
    line-height: 1.6;
}

/* ========== Estructura General ========== */

.main-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    height: 100vh;
}

/* Lado Izquierdo - Logo */

.main-cont {
    background-color: var(--fondo-claro);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.desc-header {
    text-align: center;
}

.desc-header img {
    width: 80%;
    max-width: 300px;
    margin-bottom: 1rem;
}

.desc-header p {
    font-size: 1.5em;
    color: var(--color-secundario);
}

/* Lado Derecho - Login */

.cont-header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem;
}

.cont-header h1 {
    color: var(--color-secundario);
    margin-bottom: 1rem;
}

.cont-header form {
    width: 100%;
    max-width: 400px;
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.cont-header form label {
    color: var(--color-secundario);
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

#loginUsuario {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--color-primario);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

#loginUsuario:hover {
    background-color: #0f2d37;
}

#messageUsuario {
    margin-top: 1rem;
    color: red;
    font-size: 0.9rem;
}

/* ========== Sidebar (si aplica para dashboard) ========== */

.app .app-sidebar,
.app .app-nav,
.app .app-header {
    background-color: #002126 !important;
}

.app-sidebar__user-avatar {
    width: 48px;
    height: auto;
    margin-right: 10px;
    background-color: #fff;
    border-radius: 50%;
}

.app-sidebar__user-info {
    flex: 1;
}

.app-sidebar__user-name,
.app-sidebar__user-designation {
    font-size: 14px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-sidebar__toggle {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-sidebar__toggle::before {
    display: none;
}

/* ========== Alertas ========== */
.alert {
    color: red;
    font-weight: bold;
}
