/* === Reset general de Tailwind === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    height: 100%;
}
body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f3f4f6; /* gray-100 */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #111827; /* gray-900 */
}

/* === Contenedor principal del formulario === */
.bg-white {
    background-color: #ffffff;
}
.p-6 {
    padding: 1.5rem;
}
.rounded {
    border-radius: 0.25rem;
}
.shadow-md {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
}
.w-96 {
    width: 24rem; /* 384px */
}
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}
.text-center {
    text-align: center;
}
.mb-4 {
    margin-bottom: 1rem;
}
.mb-6 {
    margin-bottom: 1.5rem;
}

/* === Inputs === */
.input-field,
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-width: 1px;
    border-style: solid;
    border-color: #d1d5db; /* gray-300 */
    border-radius: 0.25rem;
    background-color: #fff;
    font-size: 1rem;
    line-height: 1.5;
    color: #111827;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input-field:focus,
input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #3b82f6; /* blue-500 */
    box-shadow: 0 0 0 3px rgba(59,130,246,0.3);
}

/* === Botón principal === */
.btn,
button[type="submit"] {
    display: block;
    width: 100%;
    background-color: #3b82f6; /* blue-500 */
    color: #ffffff;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn:hover,
button[type="submit"]:hover {
    background-color: #2563eb; /* blue-600 */
}
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.3);
}

/* === Textos pequeños o links === */
.text-sm {
    font-size: 0.875rem;
}
.text-gray-600 {
    color: #4b5563;
}
.text-blue-500 {
    color: #3b82f6;
}
.text-blue-500:hover {
    text-decoration: underline;
}

/* === Estructura adicional que suele usar Tailwind en el login === */
.flex {
    display: flex;
}
.flex-col {
    flex-direction: column;
}
.gap-4 {
    gap: 1rem;
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 1rem;
}

/* === Sombras y bordes === */
.border {
    border-width: 1px;
    border-color: #e5e7eb; /* gray-200 */
}

/* === Utilidades de alineación vertical y horizontal === */
.h-screen {
    height: 100vh;
}
.items-center {
    align-items: center;
}
.justify-center {
    justify-content: center;
}

/* === Clases adicionales detectadas en los inputs === */
.w-full {
    width: 100%;
}
.mb-3 {
    margin-bottom: 0.75rem; /* 12px */
}
.p-2 {
    padding: 0.5rem; /* 8px */
}
.border {
    border: 1px solid #d1d5db; /* gray-300 */
}
.rounded {
    border-radius: 0.25rem;
}
/* --- Modo claro (por defecto) --- */
body {
    background-color: #ffffff;
    color: #000000;
}

/* --- Modo oscuro --- */
body.dark {
    background-color: #121212;
    color: #000;
}
/* === TOGGLE DE MODO OSCURO/CLARO === */
.theme-toggle {
    position: relative;
    display: flex;
    width: 50px;
    height: 26px;
}
.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #4caf50;
}
input:checked + .slider:before {
    transform: translateX(24px);
}

