body.offline:before {
  content: "⚠️ Sem internet – tudo será guardado localmente";
  position: fixed; top: 0; left: 0; right: 0;
  background: #d9534f; color: #fff; padding: 6px; text-align: center;
  font-size: 13px; z-index: 2000;
}


/* Fuente minimalista */
body {
    font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 
                 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}

:root{
  /* Anunciamos que el sitio ya tiene su propio esquema oscuro      */
  color-scheme: dark;                 /* evita que Chrome lo invierta */
}

.sidebar img{
  forced-color-adjust: none;          /* bloquea cualquier ajuste automático */
  color-scheme: only light;           /* mantén los colores originales       */
}


/* Fondo y estructura general */
body {
    background-color: #1A1A1A;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

/* Contenedor principal */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Caja de login */
.login-box {
    background: #1A1A1A;
    padding: 50px;
    border-radius: 12px;
    text-align: center;
    max-width: 350px;
    width: 100%;
}

/* Mantiene la posición del logo y textos */
.header {
    text-align: center;
    margin-bottom: 20px;
}

/* Ícono principal */
.icon img {
    width: 50px;
    height: auto;
    margin-bottom: 10px;
}

/* Títulos */
h1,h2 {
    font-size: 28px;
    font-weight: 700;
    color: #d1d1d1;
    margin-bottom: 8px;
}

p {
    color: #aaa;
    font-size: 16px;
    margin-bottom: 24px;
}

.welcome-text {
    font-size: 18px;
    color: #d1d1d1;
}

/* Botones */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    background-color: #333;
    color: #d1d1d1;
    border: none;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s, transform 0.1s;
    position: relative;
    text-align: center;
}

/* Ajustar el ícono dentro del botón */
.btn img {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    position: absolute;
    left: 16px;
}

/* Solución para centrar correctamente el texto */
.btn span {
    flex-grow: 1;
    text-align: center;
}

/* Separador con líneas */
.divider {
    display: flex;
    align-items: center;
    text-transform: uppercase;
    font-size: 12px;
    color: #777;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: #444;
    margin: 0 10px;
}

/* Inputs */
.input-group {
    text-align: left;
    margin-bottom: 12px;
}

.input-group label {
    font-size: 14px;
    color: #aaa;
    display: block;
    margin-bottom: 4px;
}

/* Estilos para los inputs */
input {
    width: 100%;
    padding: 16px 14px;  /* Más espacio interno */
    background: rgba(38, 38, 38, 0.6); /* Fondo oscuro con transparencia */
    border: 2px solid #444; /* Borde más visible */
    color: white;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: border 0.2s, background 0.2s;
}

/* Cambiar el borde cuando está enfocado */
input:focus {
    border-color: #4A90E2;
    background: rgba(38, 38, 38, 0.9); /* Un poco más opaco al enfocarlo */
}

/* Estilo del placeholder */
input::placeholder {
    color: rgba(255, 255, 255, 0.5); /* Un gris más claro */
    text-transform: lowercase; /* Si deseas un estilo diferente */
    letter-spacing: 0.8px; /* Más espaciado entre letras */
    text-align: left; /* Alineado a la izquierda */
}

/* Cuando el input está deshabilitado */
input:disabled {
    opacity: 0.5;
}

/* Botón Login en la misma línea que Forgot Password */
.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.login-btn {
    font-weight: bold;
    padding: 14px 20px;
    background-color: #333;
    border: none;
    color: white;
    width: 50%;
    border-radius: 8px;
    cursor: pointer;
}

.login-btn:hover {
    background-color: #444;
}

/* "Don't have an account? Register" en color claro */
.register-text {
    font-size: 14px;
    color: #d1d1d1;
    margin-top: 10px;
}

.register-link {
    color: #4A90E2;
    cursor: pointer;
}

.register-link:hover {
    text-decoration: underline;
}

/* Ajustar el link de 'Change sign-in method' */
.link.back {
    font-size: 15px;
    color: #d1d1d1; /* Color claro en lugar del azul */
    cursor: pointer;
    margin-bottom: 15px;
    display: inline-block;
}

.link.back:hover {
    color: #ffffff; /* Opcional: al pasar el mouse, hacer que se vuelva blanco */
}

/* Subtítulo 'via email' */
.subtitle {
    font-size: 16px;
    color: #aaa;
    margin-bottom: 18px;
}

/* Ocultar pantallas */
.hidden {
    display: none;
}

/* Checkbox personalizado */
.checkbox-container {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #d1d1d1;
    margin-top: 8px;
}

.checkbox-container input {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

.checkbox-container a {
    color: #4A90E2;
    text-decoration: none;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

/* Ajuste para Register */
#register-form {
    text-align: left;
}

#register-form h2 {
    text-align: center;
}

#register-form .checkbox-container {
    display: flex;
    justify-content: start;
    align-items: center;
    margin-top: 12px;
}

/* Botón en Register igual al Login */
.register-btn {
    font-weight: bold;
    padding: 14px 20px;
    background-color: #333;
    border: none;
    color: white;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 12px;
}

.register-btn:hover {
    background-color: #444;
}
