:root{
    --color-header:        #eee;
    --color-sidebar:       #eee;
    --color-body:          rgb(246 247 249);
    --color-text:          rgb(35 39 47 / 1);
    --color-text-submenu:  rgb(55 65 81 / 0.9);
    --color-textInicio:    #F56B31;
    --color-textInicioHover:    #f28e63;
    --color-textIniciohover:    #eee;
    --color-sidebar-hover: #ada09b2b;
    --color-graph:         #eee;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-image {
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 0 50px 15px auto;
    border-radius: 10px;
    padding: 0 0 20px 0;
}

.container {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: row;
}

form h2 {
    margin-bottom: 1rem;
    text-align: center;
}

input {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border: 1px solid #ccc;
    border-radius: 8px;
}

button {
    width: 100%;
    padding: 0.75rem;
    background: var(--color-textInicio);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 0.5rem;
}

button:hover {
    background: var(--color-textInicioHover);
}

p {
    text-align: center;
    margin-top: 1rem;
}

a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* ===== Pantalla de carga ===== */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--color-body);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.loader {
  border: 6px solid var(--color-sidebar-hover);
  border-top: 6px solid var(--color-textInicio);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}


/* ESTILOS PARA EL MODAL DE TOKEN */
/* Fondo del modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Fondo difuminado */
  display: none; /* Oculto por defecto */
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Encima del contenido */
}

/* Contenedor del modal */
.modal-content {
  background: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 350px;
  max-width: 90%;
  animation: fadeIn 0.3s ease-in-out;
}

/* Transición */
@keyframes fadeIn {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Inputs y botones dentro del modal */
.modal-content input {
  width: 100%;
  padding: 10px;
  margin: 12px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.modal-content button {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  border: none;
  border-radius: 5px;
  background-color: var(--color-textInicio);
  color: white;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-content button:hover {
  background-color: var(--color-textInicioHover);
}

/* Botón de cancelar */
.modal-content .cancel-btn {
  background-color: #6c757d;
}

.modal-content .cancel-btn:hover {
  background-color: #5a6268;
}
