/* dashboard/assets/css/dashboard.css */

/* ========================================================= */
/* 1. DEFINICIÓN DE VARIABLES CSS (CUSTOM PROPERTIES)        */
/*    Usa estas variables para mantener la consistencia     */
/*    de colores en todo tu proyecto.                        */
/* ========================================================= */
:root {
    /* Paleta de Colores Principal */
    --color-primary-dark-bg: #0D0000;              /* Fondo oscuro principal (sidebar, login form) */
    --color-primary-dark-accent: #401E01;           /* Acento oscuro (sidebar activo, bordes, etc.) */
    --color-primary-orange: #F29F05;                /* Naranja principal (botones primarios) */
    --color-primary-orange-hover: #F24405;          /* Naranja oscuro (hover de primario) */

    /* Colores Neutros y de Fondo */
    --color-bg-light: #f4f4f4;                      /* Fondo claro general del body */
    --color-bg-dashboard: #f8f9fa;                  /* Fondo del área principal del dashboard */
    --color-bg-white: white;                        /* Fondo blanco para tarjetas, formularios */
    --color-bg-input-light: #fcfcfc;                /* Fondo de inputs claros */
    --color-bg-input-dark: #1a1a1a;                 /* Fondo de inputs oscuros (login) */
    --color-bg-grey-default: #6c757d;               /* Gris neutro general para botones/elementos */
    --color-bg-grey-default-hover: #5a6268;         /* Gris neutro oscuro (hover) */
    --color-bg-overlay-dark: rgba(0, 0, 0, 0.4);    /* Overlay oscuro (login) */
    --color-bg-overlay-darker: rgba(0, 0, 0, 0.6);  /* Overlay más oscuro para modales */

    /* Colores de Texto */
    --color-text-dark: #333;                        /* Texto oscuro estándar */
    --color-text-light: white;                      /* Texto claro estándar */
    --color-text-muted: #6c757d;                    /* Texto gris tenue */
    --color-text-black: black;                      /* Texto negro puro */
    --color-text-sidebar-link: #adb5bd;             /* Color de enlaces del sidebar */
    --color-text-sidebar-link-hover: white;         /* Hover de enlaces del sidebar */
    --color-text-login-label: #D3D3D3;              /* Etiquetas del formulario de login */
    --color-text-login-subtitle: #F2F2F2;           /* Subtítulo del login */
    --color-text-placeholder: #888;                /* Texto de placeholder */

    /* Colores de Bordes */
    --color-border-input-light: #e0e0e0;            /* Borde de inputs claros */
    --color-border-input-dark: #401E01;             /* Borde de inputs oscuros (login) */
    --color-border-table: #e9ecef;                  /* Borde de tablas */
    --color-border-grey-light: #adb5bd;             /* Borde para botones secundarios */

    /* Colores de Estados y Acciones */
    --color-status-pending-bg: #fff3cd;             /* Fondo de estado "Pendiente/Borrador" */
    --color-status-pending-text: #856404;           /* Texto de estado "Pendiente/Borrador" */
    --color-status-approved-bg: #d4edda;            /* Fondo de estado "Aprobado/Publicado" */
    --color-status-approved-text: #155724;          /* Texto de estado "Aprobado/Publicado" */
    --color-status-published-bg: var(--color-status-approved-bg);
    --color-status-published-text: var(--color-status-approved-text);
    --color-status-draft-bg: var(--color-status-pending-bg);
    --color-status-draft-text: var(--color-status-pending-text);
    
    --color-button-danger: #dc3545;                 /* Botón de peligro (rojo) */
    --color-button-danger-hover: #c82333;           /* Hover de botón de peligro */
    --color-button-secondary-bg: #adb5bd;           /* Botón secundario (gris claro) */
    --color-button-secondary-hover-bg: #939aa0;     /* Hover de botón secundario */
    --color-button-secondary-text-hover: white;     /* Texto de botón secundario en hover */

    --color-edit-link: #007bff;                     /* Enlace de edición (azul) */
    --color-delete-link: var(--color-button-danger); /* Enlace de eliminación (rojo) */
    --color-approve-link: var(--color-status-approved-text); /* Enlace de aprobar (verde) */
    --color-approve-link-hover: #1a6d2c;            /* Hover de enlace de aprobar */

    --color-error-text: #d93025;                    /* Texto de error general */
    --color-error-text-login: #ffcccc;              /* Texto de error del login */
    --color-success-text: #155724;                  /* Texto de éxito */
    --color-info-text: #004085;                     /* Texto de información */
    --color-info-bg: #cce5ff;                       /* Fondo de notificación de info */
    --color-info-border: #b8daff;                   /* Borde de notificación de info */
    
    /* Colores Específicos de Tarjetas (Actualizados a tus últimos colores y usando variables) */
    --color-card-articles-bg: #03401D;              /* Fondo tarjeta Artículos */
    --color-card-articles-border: #07734B;          /* Borde tarjeta Artículos */
    --color-card-comments-bg: #081B26;              /* Fondo tarjeta Comentarios */
    --color-card-comments-border: #03401D;          /* Borde tarjeta Comentarios */
    --color-card-users-bg: #400036;                 /* Fondo tarjeta Usuarios */
    --color-card-users-border: #401E01;             /* Borde tarjeta Usuarios */
    --color-card-text-light-on-dark: #e0effd;       /* h4 en tarjetas oscuras */
    --color-card-text-white: #ffffff;               /* p en tarjetas oscuras */
}


/* ========================================================= */
/* 2. ESTILOS GLOBALES Y DE COMPONENTES (Desktop First)      */
/* ========================================================= */

/* --- Base Body --- */
body {
  font-family: sans-serif;
  background-color: var(--color-bg-light);
  display: block;
  justify-content: unset;
  align-items: unset;
  height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

/* --- Login Page Elements --- */
#background-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
    object-fit: cover;
}

#video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-overlay-dark);
    z-index: -1;
}

/* Añade esta clase al body de tu index.html */
body.login-page {
    background-color: var(--color-primary-dark-bg);
}

.login-container {
  background-color: var(--color-primary-dark-bg);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  width: 450px;
  max-width: 90%;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

#login-logo {
  width: 80px;
  height: auto;
  margin-bottom: 0.5rem;
  border-radius: 15px;
}

#login-main-title {
  color: var(--color-text-light);
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: bold;
  line-height: 1.2;
}

#login-subtitle {
  color: var(--color-text-login-subtitle);
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-primary-dark-accent);
  padding-bottom: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.login-container #login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-container .form-group {
    width: 100%;
    margin-bottom: 0;
    text-align: left;
}

.login-container .form-group label {
  color: var(--color-text-login-label);
  font-weight: normal;
  margin-bottom: 0.75rem;
  display: block;
  text-align: left;
}

.login-container .form-group input {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid var(--color-border-input-dark);
  border-radius: 6px;
  box-sizing: border-box;
  background-color: var(--color-bg-input-dark);
  color: var(--color-text-light);
  font-size: 1rem;
}

.login-container .form-group input::placeholder {
  color: var(--color-text-placeholder);
}

#login-submit-button {
  background-color: var(--color-primary-orange);
  color: var(--color-text-light);
  padding: 0.9rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 6px;
  margin-top: 1.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

#login-submit-button:hover {
  background-color: var(--color-primary-orange-hover);
}

.login-container .error-text {
  color: var(--color-error-text-login);
  margin-top: 1rem;
}

/* --- Dashboard Layout (Desktop) --- */
.dashboard-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-bg-dashboard);
}

.sidebar {
  width: 250px;
  background-color: var(--color-primary-dark-bg);
  color: var(--color-text-light);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.sidebar h3 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}
.sidebar nav ul {
  list-style: none;
  padding: 0;
}
.sidebar nav a {
  color: var(--color-text-sidebar-link);
  text-decoration: none;
  display: block;
  padding: 0.8rem;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}
.sidebar nav a:hover {
  background-color: var(--color-primary-dark-accent);
  color: var(--color-text-sidebar-link-hover);
}
.sidebar nav li.active a {
  background-color: var(--color-primary-dark-accent);
  color: var(--color-text-light);
}
#logout-button {
  margin-top: auto;
  background-color: var(--color-button-danger); /* Asumo que quieres rojo para cerrar sesión */
}
#logout-button:hover {
    background-color: var(--color-button-danger-hover);
}

.main-content {
  flex-grow: 1;
  padding: 2rem;
  overflow-y: auto;
}

/* --- Stats Cards --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.stat-card {
  background-color: var(--color-bg-white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* Colores específicos para cada tarjeta (usando variables) */
.stats-grid .stat-card:nth-child(1) { /* Primera tarjeta: Artículos Publicados */
  background-color: var(--color-card-articles-bg);
  border-left: 5px solid var(--color-card-articles-border);
}
.stats-grid .stat-card:nth-child(2) { /* Segunda tarjeta: Comentarios Totales */
  background-color: var(--color-card-comments-bg);
  border-left: 5px solid var(--color-card-comments-border);
}
.stats-grid .stat-card:nth-child(3) { /* Tercera tarjeta: Usuarios Registrados */
  background-color: var(--color-card-users-bg);
  border-left: 5px solid var(--color-card-users-border);
}

.stat-card h4 {
  margin-top: 0;
  color: var(--color-card-text-light-on-dark);
}
.stat-card p {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--color-card-text-white);
  margin-bottom: 0;
}

/* Opcional: Efecto de hover para las tarjetas */
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* --- Main Content Header (Dashboard) --- */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.button-primary {
  background-color: var(--color-primary-orange);
  color: var(--color-text-light);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease;
}
.button-primary:hover {
  background-color: var(--color-primary-orange-hover);
}

/* --- Content Table --- */
.content-table {
  background-color: var(--color-bg-white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border-table);
}
th {
  color: var(--color-text-muted);
  font-weight: 600;
}
.status {
  padding: 0.25rem 0.6rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: bold;
}
.status.published {
  background-color: var(--color-status-published-bg);
  color: var(--color-status-published-text);
}
.status.draft {
  background-color: var(--color-status-draft-bg);
  color: var(--color-status-draft-text);
}
.status.pending { 
    background-color: var(--color-status-pending-bg);
    color: var(--color-status-pending-text);
}
.status.approved { 
    background-color: var(--color-status-approved-bg);
    color: var(--color-status-approved-text);
}

.action-buttons a {
    margin-right: 0.5rem;
    text-decoration: none;
    font-weight: bold;
}
.edit-btn { color: var(--color-edit-link); }
.delete-btn { color: var(--color-delete-link); }
.approve-btn {
    color: var(--color-approve-link);
    text-decoration: none;
    font-weight: bold;
    margin-right: 0.8rem;
    transition: color 0.2s ease;
}
.approve-btn:hover {
    color: var(--color-approve-link-hover);
}
/* Estilo para acciones deshabilitadas */
span.disabled-action {
    color: var(--color-text-muted);
    cursor: not-allowed;
    margin-right: 0.8rem;
    font-weight: bold;
    opacity: 0.7;
}


/* --- Editor Forms --- */
.editor-form-container {
    background-color: var(--color-bg-white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}
#quill-editor {
    background-color: var(--color-bg-white);
}
.form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}
.button-secondary {
    background-color: var(--color-button-secondary-bg);
    color: var(--color-text-dark);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.2s ease;
    border: 1px solid var(--color-border-grey-light);
}
.button-secondary:hover {
    background-color: var(--color-button-secondary-hover-bg);
    color: var(--color-button-secondary-text-hover);
}

/* --- Modals (General) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-overlay-darker);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-content {
  background-color: var(--color-bg-white);
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 450px;
  text-align: center;
}
.modal-content h4 {
  margin-top: 0;
  font-size: 1.5rem;
}
.modal-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.button-danger {
  background-color: var(--color-button-danger);
  color: var(--color-text-light);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  border: none;
  font-weight: bold;
  cursor: pointer;
}
.button-danger:hover {
  background-color: var(--color-button-danger-hover);
}

/* --- Global Form Elements (h1, h2, label, input, select, button) --- */
/* Estas son reglas base que pueden ser sobrescritas por selectores más específicos */
h1 { /* Estilo general para h1 en el main-content */
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}
h2 { /* Estilo global para h2, sobrescrito por #login-main-title */
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
}
label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--color-text-dark);
  font-weight: 600;
}
input[type="text"],
input[type="number"],
input[type="date"],
select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--color-border-input-light);
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 1rem;
  color: var(--color-text-dark);
  background-color: var(--color-bg-input-light);
  transition: border-color 0.2s ease;
}
input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus {
  border-color: var(--color-primary-dark-accent);
  outline: none;
}
button {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--color-bg-grey-default);
  color: var(--color-text-light);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
button:hover {
  background-color: var(--color-bg-grey-default-hover);
}


.error-text {
  color: var(--color-error-text);
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.2rem;
}
.form-message {
    color: var(--color-error-text);
    margin-top: 1rem;
    font-weight: bold;
}
.form-message.success { color: var(--color-success-text); }
.form-message.error { color: var(--color-error-text); }


/* --- Disabled Links (Sidebar) --- */
.sidebar nav li.disabled-link a {
  color: var(--color-text-muted) !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  text-decoration: none !important;
}
.sidebar nav li.disabled-link a:hover {
  background-color: transparent !important;
  color: var(--color-text-muted) !important;
}
.lock-indicator {
  display: none; /* Oculto por CSS por defecto, JS lo muestra */
  margin-left: 8px;
  opacity: 0.7;
}


/* ========================================================= */
/* MOBILE HEADER (PARA DASHBOARD) - OCULTO POR DEFECTO (Escritorio) */
/* ========================================================= */
.mobile-header {
    display: none;
    width: 100%;
    height: 60px;
    background-color: var(--color-primary-dark-accent);
    color: var(--color-text-light);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    padding: 0 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    overflow: hidden;
}
.mobile-header .blog-title-mobile {
    display: none !important;
}
.mobile-header .hamburger-menu-icon {
    background: none;
    color: var(--color-text-light);
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    border: none;
    box-shadow: none;
    margin: 0;
    flex-shrink: 0;
}
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-overlay-dark);
    z-index: 1000;
}


/* ========================================================= */
/* 3. ESTILOS DE LA NOTIFICACIÓN FLOTANTE                    */
/* ========================================================= */
.floating-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex; /* Asegura que el botón de cerrar esté al lado del mensaje */
    align-items: center;
    justify-content: space-between;
    min-width: 280px;
    max-width: 400px;
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.floating-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.floating-notification #notification-message {
    flex-grow: 1;
    margin-right: 1rem;
    font-weight: bold;
    color: inherit; /* Hereda el color del padre para que sea dinámico */
}

.floating-notification .close-notification-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    color: inherit; /* Hereda el color para que sea dinámico */
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.floating-notification .close-notification-btn:hover {
    opacity: 1;
}

/* Tipos específicos de notificación */
.floating-notification.success {
    background-color: var(--color-status-approved-bg);
    color: var(--color-status-approved-text);
    border: 1px solid #c3e6cb; /* Borde más sutil que el texto */
}

.floating-notification.error {
    background-color: var(--color-button-danger);
    color: var(--color-text-light); /* Texto blanco para el fondo rojo */
    border: 1px solid var(--color-button-danger-hover);
}
.floating-notification.error #notification-message { /* Fuerza el color de mensaje si el contenedor tiene color de fondo */
    color: var(--color-text-light);
}
.floating-notification.error .close-notification-btn {
    color: var(--color-text-light);
}

.floating-notification.info {
    background-color: var(--color-info-bg);
    color: var(--color-info-text);
    border: 1px solid var(--color-info-border);
}
.floating-notification.info #notification-message {
    color: var(--color-info-text);
}
.floating-notification.info .close-notification-btn {
    color: var(--color-info-text);
}


/* ========================================================= */
/* 4. MEDIA QUERIES PARA RESPONSIVIDAD                       */
/* ========================================================= */

/* --- General para Tabletas y Móviles (hasta 768px) --- */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }
    body {
        display: block;
        height: auto;
        min-height: 100vh;
        margin: 0;
        justify-content: unset !important;
        align-items: unset !important;
    }

    /* Dashboard Container */
    .dashboard-container {
        flex-direction: column;
        width: 100vw;
        height: auto;
        overflow-y: visible;
    }

    /* Mobile Header (Dashboard) */
    .mobile-header {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        margin: 0 !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    body.sidebar-open .mobile-header .hamburger-menu-icon {
        display: none !important;
    }

    /* Sidebar */
    .sidebar h3 {
        display: block;
        text-align: center;
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        color: var(--color-text-light);
        padding-top: 1rem;
    }
    .sidebar {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100vh;
        z-index: 1001;
        transition: left 0.3s ease-in-out;
        box-shadow: 2px 0 5px rgba(0,0,0,0.5);
        overflow-y: auto;
        padding-top: 0;
        padding-bottom: 1rem;
        box-sizing: border-box;
    }
    .sidebar.open {
        left: 0;
    }
    .sidebar-overlay.visible {
        display: block;
    }
    body.sidebar-open {
        overflow: hidden;
    }

    /* Main Content (Dashboard) */
    .main-content {
        flex-grow: 1;
        padding: 1rem;
        width: 100%;
        margin-left: 0;
        margin-top: 60px;
        box-sizing: border-box;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .content-table {
        overflow-x: auto;
    }
    .content-table table {
        min-width: 600px;
    }
    .action-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    .action-buttons a {
      margin-right: 0;
    }


    /* --- Estilos ESPECÍFICOS para la PÁGINA DE LOGIN en móviles (hasta 768px) --- */
    .login-container {
        width: 90%;
        max-width: 380px;
        padding: 2rem 1.5rem;
        gap: 1rem;
    }
    #login-logo {
        width: 70px;
        margin-bottom: 0.3rem;
    }
    #login-main-title {
        font-size: 1.6rem;
        margin-bottom: 0.3rem;
    }
    #login-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    .login-container .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    .login-container .form-group input {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    #login-submit-button {
        padding: 0.8rem;
        font-size: 1rem;
        margin-top: 1.2rem;
    }
    .login-container .error-text {
        font-size: 0.8rem;
    }
    /* Mobile adjustments for floating notification */
    .floating-notification {
        top: 10px;
        left: 10px;
        right: 10px;
        width: auto;
        min-width: unset;
        max-width: unset;
        transform: translateY(-100px); /* Adjust for smaller screens */
    }
}

/* --- Media Query Adicional para pantallas MUY pequeñas (hasta 420px) --- */
@media (max-width: 420px) {
    .login-container {
        width: 95%;
        max-width: 300px;
        padding: 1.5rem 1rem;
        gap: 0.7rem;
    }
    #login-logo {
        width: 60px;
        margin-bottom: 0.2rem;
    }
    #login-main-title {
        font-size: 1.4rem;
        margin-bottom: 0.2rem;
    }
    #login-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1rem;
        padding-bottom: 0.8rem;
    }
    .login-container .form-group label {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }
    .login-container .form-group input {
        padding: 0.7rem;
        font-size: 0.85rem;
    }
    #login-submit-button {
        padding: 0.7rem;
        font-size: 0.95rem;
        margin-top: 1rem;
    }
    .login-container .error-text {
        font-size: 0.75rem;
    }
}