/* === Declaración de la Fuente Personalizada === */
@font-face {
    font-family: 'HD Colton Wide Black'; /* Nombre que le damos a la fuente */
    /* Ruta CORRECTA desde css_client para fonts fuera de clients */
    src: url('../../fonts/HDColton-WideBlack.woff2') format('woff2');
    font-weight: 900; /* O 'black', apropiado para el nombre "WideBlack" */
    font-style: normal;
}
/* ========================================== */

/* Reseteo básico y estilos globales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    /* Fuente base para el resto de la página */
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #cccccc;
    background-image: url('../images_client/default_bg.jpg'); /* Será sobreescrito por JS si aplica */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Contenedor del login */
.login-container {
    background-color: rgba(68, 68, 68, 0.20); /* Fondo semi-transparente */
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 350px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-container h1 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.5em;
    /* Aplicar la fuente personalizada */
    font-family: 'HD Colton Wide Black', sans-serif;
    /* El peso lo define @font-face, ya no es necesario 'bold' aquí */
    /* font-weight: bold; */
}

/* Grupo de input */
.input-group {
    margin-bottom: 15px;
    position: relative;
}

/* Estilos para los campos de texto y contraseña */
.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    background-color: #e0e0e0;
    color: #333;
    font-size: 1em;
    /* Hereda la fuente base (Arial, sans-serif), no la personalizada */
}

/* Placeholder styling */
.login-container input::placeholder {
    color: #666;
}

/* Estilos para el área de mensajes */
#message-area {
    min-height: 20px;
    margin-bottom: 15px;
    padding: 8px;
    border-radius: 4px;
    font-weight: bold; /* Mantenemos bold para mensajes */
    text-align: center;
    color: transparent;
    background-color: transparent;
    transition: all 0.3s ease;
}

#message-area.message-success {
    background-color: #28a745;
    color: white;
    font-weight: bold; /* Mantenemos bold */
}

#message-area.message-error {
    background-color: #f8d7da;
    color: #721c24;
    /* font-weight es bold por defecto en #message-area */
}

/* Estilos para el botón */
.login-container button {
    width: 100%;
    padding: 12px;
    background-color: #333333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    /* Aplicar la fuente personalizada */
    font-family: 'HD Colton Wide Black', sans-serif;
    /* El peso lo define @font-face, ya no es necesario 'bold' aquí */
    /* font-weight: bold; */
}

.login-container button:hover {
    background-color: #21e785;
}

/* Clase para ocultar visualmente elementos pero mantenerlos accesibles */
.sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Media Query para pantallas más grandes */
@media (min-width: 600px) {
    .login-container {
        padding: 40px 30px;
    }
    .login-container h1 {
        font-size: 1.8em;
    }
}