/* Colores institucionales */
:root {
    --primary-color: #00FF00;  /* Verde institucional */
    --secondary-color: #FFD700; /* Amarillo */
    --accent-color: #FF0000;    /* Rojo */
    --background-color: #FFFFFF; /* Fondo blanco */
    --text-color: #000000;      /* Texto negro */
    --error-color: #e74c3c;     /* Rojo error */
    --input-border: #e0e0e0;    /* Borde de inputs */
}

/* Reset y fuente */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Fondo general */
body {
    background-color: #f5f5f5; /* Blanco tirando a gris */
    background-image: url('/assets/logo.png'); /* Ruta de tu logo */
    background-repeat: no-repeat;
    background-size: 50%; /* Ajusta el tamaño del logo */
    background-position: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Capa de difuminado (blur) */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 245, 245, 0.6); /* Blanco-gris translúcido */
    backdrop-filter: blur(8px); /* Difumina la imagen */
    z-index: 0; /* Detrás del contenido */
}

/* Asegura que el contenido esté por encima */
.container-login {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
}

/* Contenedor principal */
.auth-container {
    width: 100%;
    max-width: 420px;
    background: var(--background-color);
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

/* Header del formulario */
.auth-header {
    background: var(--primary-color);
    color: var(--text-color);
    padding: 20px;
    text-align: center;
}

.auth-header h2 {
    font-weight: 600;
    font-size: 1.8rem;
    margin-top: 10px;
}

/* Logo empresa */
.company-logo {
    max-width: 150px;
    height: auto;
}

/* Cuerpo del formulario */
.auth-body {
    padding: 30px;
}

/* Grupos de inputs */
.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s;
}

.input-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Botones */
.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.btn:hover {
    background: var(--secondary-color);
    color: var(--text-color);
}

.btn-logout {
    background: var(--accent-color);
    color: var(--background-color);
    margin-top: 20px;
}

.btn-logout:hover {
    background: #c0392b;
    color: var(--background-color);
}

/* Mensajes de error */
.message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.message.error {
    background-color: #ffebee;
    color: var(--error-color);
}

/* Dashboard */
.dashboard-content {
    text-align: center;
}

.welcome-message {
    margin-bottom: 30px;
}

.user-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
