/*
 * auth-standalone.css
 * CSS estático para las 2 vistas standalone de contraseña (no usan _Layout):
 *   - Auth/Login.cshtml
 *   - Perfil/CambiarClaveForzada.cshtml
 *
 * Reemplaza Tailwind Play CDN (+ plugin forms) y Google Fonts para eliminar
 * toda dependencia externa. Archivo SEPARADO de public-standalone.css por el
 * volumen de utilidades exclusivas de estas vistas (forms plugin, rings con
 * color de marca, layout lg: de dos columnas, valores arbitrarios), y para
 * aislar el riesgo de la pantalla de login.
 *
 * Las reglas replican exactamente las clases Tailwind v3 usadas en el markup,
 * con los valores oficiales de la paleta.
 *
 * Colores:
 *   marca (Login):  var(--brand-primary) / hover var(--brand-primary-dark)
 *   primary (Cambiar): #90A4AE / primary-dark #78909C
 *
 * NOTA sobre variantes dark:: ambas vistas fuerzan modo claro
 * (<html class="light">) y NO existe ningún toggle que agregue `.dark` al
 * árbol, por lo que las clases dark:* nunca se aplican. Se omiten a propósito
 * (serían CSS muerto). Tipografía: stack del sistema (font-display de Login
 * se mantiene serif vía <style> inline de esa vista).
 */

/* ================================================================== */
/* Mini-preflight (subset del preflight de Tailwind v3)               */
/* ================================================================== */
*,
::before,
::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    margin: 0;
    line-height: inherit;
}

h1,
h2,
h3 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: inherit;
}

strong {
    font-weight: bolder;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

img,
svg {
    display: block;
    vertical-align: middle;
}

/* Controles de formulario (subset preflight + @tailwindcss/forms) */
button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

button,
select {
    text-transform: none;
}

button,
[type='button'],
[type='submit'],
[type='reset'] {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}

button {
    cursor: pointer;
}

:disabled {
    cursor: default;
}

::placeholder {
    opacity: 1;
    color: #9ca3af;
}

/* @tailwindcss/forms: clase .form-input (estrategia class) */
.form-input {
    -webkit-appearance: none;
    appearance: none;
}

/* @tailwindcss/forms: checkbox personalizado */
[type='checkbox'] {
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    print-color-adjust: exact;
    display: inline-block;
    vertical-align: middle;
    background-origin: border-box;
    -webkit-user-select: none;
    user-select: none;
    flex-shrink: 0;
    height: 1rem;
    width: 1rem;
    color: #2563eb;
    background-color: #fff;
    border-color: #6b7280;
    border-width: 1px;
}

[type='checkbox']:checked {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
    border-color: transparent;
    background-color: currentColor;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

[type='checkbox']:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ring-color, #2563eb);
}

/* ================================================================== */
/* Display / posicionamiento                                          */
/* ================================================================== */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.relative { position: relative; }
.absolute { position: absolute; }

.top-0 { top: 0; }
.right-0 { right: 0; }
.left-0 { left: 0; }
.left-10 { left: 2.5rem; }
.bottom-10 { bottom: 2.5rem; }
.top-1\/2 { top: 50%; }

.z-10 { z-index: 10; }

.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }
.select-none { -webkit-user-select: none; user-select: none; }
.cursor-pointer { cursor: pointer; }

.min-h-screen { min-height: 100vh; }

/* Transform */
.-translate-y-1\/2 { transform: translateY(-50%); }

/* ================================================================== */
/* Sizing                                                             */
/* ================================================================== */
.w-1 { width: 0.25rem; }
.w-5 { width: 1.25rem; }
.w-12 { width: 3rem; }
.w-20 { width: 5rem; }
.w-auto { width: auto; }
.w-full { width: 100%; }

.h-0\.5 { height: 0.125rem; }
.h-1 { height: 0.25rem; }
.h-5 { height: 1.25rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-32 { height: 8rem; }
.h-44 { height: 11rem; }
.h-full { height: 100%; }

.size-16 { width: 4rem; height: 4rem; }

.max-w-md { max-width: 28rem; }
.max-w-\[420px\] { max-width: 420px; }
.max-w-\[440px\] { max-width: 440px; }

/* ================================================================== */
/* Padding                                                            */
/* ================================================================== */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.p-\[15px\] { padding: 15px; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }

.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }

/* ================================================================== */
/* Margin                                                             */
/* ================================================================== */
.mx-4 { margin-left: 1rem; margin-right: 1rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }

.mt-0\.5 { margin-top: 0.125rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

/* ================================================================== */
/* Gap / space                                                        */
/* ================================================================== */
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-x-2 { column-gap: 0.5rem; }

.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }

/* ================================================================== */
/* Tipografía                                                         */
/* ================================================================== */
.font-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.font-display {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-\[28px\] { font-size: 28px; line-height: 1.2; }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-\[0\.25em\] { letter-spacing: 0.25em; }

.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }

/* ================================================================== */
/* Colores de texto                                                   */
/* ================================================================== */
.text-white { color: #fff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-700 { color: #374151; }
.text-green-600 { color: #16a34a; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-yellow-600 { color: #ca8a04; }
.text-yellow-800 { color: #854d0e; }
.text-\[\#1A1A1A\] { color: #1A1A1A; }
.text-\[\#4A4A4A\] { color: #4A4A4A; }
.text-\[\#666666\] { color: #666666; }
.text-\[\#757575\] { color: #757575; }
.text-\[\#999999\] { color: #999999; }
.text-\[\#9E9E9E\] { color: #9E9E9E; }
[class~="text-[var(--brand-primary)]"] { color: var(--brand-primary); }
.text-\[\#111318\] { color: #111318; }
.text-\[\#333333\] { color: #333333; }
.text-\[\#616e89\] { color: #616e89; }
.text-primary-dark { color: #78909C; }

/* ================================================================== */
/* Colores de fondo                                                   */
/* ================================================================== */
.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-red-50 { background-color: var(--brand-primary-soft); }
.bg-yellow-50 { background-color: #fefce8; }
.bg-primary { background-color: #90A4AE; }
.bg-\[\#90A4AE\] { background-color: #90A4AE; }
[class~="bg-[var(--brand-primary)]"] { background-color: var(--brand-primary); }
.bg-\[\#F5F5F4\] { background-color: #F5F5F4; }
.bg-\[\#FAFAF9\] { background-color: #FAFAF9; }
.bg-\[\#FFEBEE\] { background-color: #FFEBEE; }
.bg-\[\#f6f6f8\] { background-color: #f6f6f8; }

/* ================================================================== */
/* Bordes                                                             */
/* ================================================================== */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.rounded-r { border-top-right-radius: 0.25rem; border-bottom-right-radius: 0.25rem; }

.border { border-width: 1px; }
.border-r { border-right-width: 1px; }
.border-t { border-top-width: 1px; }

.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-red-200 { border-color: var(--brand-primary-border); }
.border-yellow-300 { border-color: #fde047; }
.border-\[\#E0E0E0\] { border-color: #E0E0E0; }
.border-\[\#dbdee6\] { border-color: #dbdee6; }

/* ================================================================== */
/* Efectos                                                            */
/* ================================================================== */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }

.opacity-\[0\.03\] { opacity: 0.03; }

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.duration-200 { transition-duration: 200ms; }

/* ================================================================== */
/* Variantes de estado: placeholder                                   */
/* ================================================================== */
.placeholder\:text-\[\#9E9E9E\]::placeholder { color: #9E9E9E; }
.placeholder\:text-\[\#616e89\]::placeholder { color: #616e89; }

/* ================================================================== */
/* Variantes de estado: hover                                         */
/* ================================================================== */
.hover\:bg-primary-dark:hover { background-color: #78909C; }
[class~="hover:bg-[var(--brand-primary-dark)]"]:hover { background-color: var(--brand-primary-dark); }
.hover\:bg-\[\#78909C\]:hover { background-color: #78909C; }
.hover\:text-primary:hover { color: #90A4AE; }
.hover\:text-red-600:hover { color: #dc2626; }
.hover\:text-\[\#1A1A1A\]:hover { color: #1A1A1A; }
[class~="hover:text-[var(--brand-primary-dark)]"]:hover { color: var(--brand-primary-dark); }
[class~="hover:text-[var(--brand-primary)]"]:hover { color: var(--brand-primary); }
.hover\:underline:hover { text-decoration-line: underline; }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }

/* ================================================================== */
/* Variantes de estado: focus                                         */
/* ================================================================== */
.focus\:outline-0:focus { outline-width: 0px; }

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px var(--ring-color, rgba(59, 130, 246, 0.5));
}
[class~="focus:ring-[var(--brand-primary)]"]:focus { --ring-color: var(--brand-primary); }
[class~="focus:ring-[var(--brand-primary)]/20"]:focus { --ring-color: color-mix(in srgb, var(--brand-primary) 20%, transparent); }
.focus\:ring-primary\/20:focus { --ring-color: rgba(144, 164, 174, 0.2); }

.focus\:border-primary:focus { border-color: #90A4AE; }
[class~="focus:border-[var(--brand-primary)]"]:focus { border-color: var(--brand-primary); }

/* ================================================================== */
/* Variantes de estado: disabled                                      */
/* ================================================================== */
.disabled\:opacity-50:disabled { opacity: 0.5; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

/* ================================================================== */
/* Responsive: sm (>= 640px)                                          */
/* ================================================================== */
@media (min-width: 640px) {
    .sm\:p-8 { padding: 2rem; }
}

/* ================================================================== */
/* Responsive: lg (>= 1024px)                                         */
/* ================================================================== */
@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none; }
    .lg\:flex-row { flex-direction: row; }
    .lg\:w-1\/2 { width: 50%; }
    .lg\:w-\[45\%\] { width: 45%; }
    .lg\:w-\[55\%\] { width: 55%; }
}
