/* ==========================================================
   login-styles.css
   CSS estático para login.php
   Substitui: Tailwind CDN (~300KB) + Font Awesome CDN (~90KB)
   ========================================================== */

/* --- Reset base (Tailwind Preflight) --- */
*, *::before, *::after { box-sizing: border-box; border: 0 solid #e5e7eb; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; line-height: 1.5; }
body { margin: 0; line-height: 1.5; -webkit-font-smoothing: antialiased; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
p, blockquote, dl, dd, figure, pre, hr, fieldset, legend { margin: 0; }
form { margin: 0; }
ol, ul { list-style: none; margin: 0; padding: 0; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; margin: 0; padding: 0; }
a { color: inherit; text-decoration: inherit; }
button { cursor: pointer; background: none; padding: 0; }

/* --- Ícones via SVG mask (substitui Font Awesome) --- */
.fa-solid, .fa-regular {
  display: inline-block;
  height: 1em;
  overflow: visible;
  vertical-align: -0.125em;
  font-style: normal;
  background-color: currentColor;
  -webkit-mask-image: var(--icon);
  mask-image: var(--icon);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.fa-eye {
  width: 1.125em;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M288 80c-65.2 0-118.8 29.6-159.9 67.7C89.6 183.5 63 226 49.4 256c13.6 30 40.2 72.5 78.6 108.3C169.2 402.4 222.8 432 288 432s118.8-29.6 159.9-67.7C486.4 328.5 513 286 526.6 256c-13.6-30-40.2-72.5-78.6-108.3C406.8 109.6 353.2 80 288 80zM95.4 112.6C142.5 68.8 207.2 32 288 32s145.5 36.8 192.6 80.6c46.8 43.5 78.1 95.4 93 131.1c3.3 7.9 3.3 16.7 0 24.6c-14.9 35.7-46.2 87.7-93 131.1C433.5 443.2 368.8 480 288 480s-145.5-36.8-192.6-80.6C48.6 356 17.3 304 2.5 268.3c-3.3-7.9-3.3-16.7 0-24.6C17.3 208 48.6 156 95.4 112.6zM288 336c44.2 0 80-35.8 80-80s-35.8-80-80-80c-.7 0-1.3 0-2 0c1.3 5.1 2 10.5 2 16c0 35.3-28.7 64-64 64c-5.5 0-10.9-.7-16-2c0 .7 0 1.3 0 2c0 44.2 35.8 80 80 80zm0-208a128 128 0 1 1 0 256 128 128 0 1 1 0-256z'/%3E%3C/svg%3E");
}
.fa-eye-slash {
  width: 1.25em;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3Cpath d='M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zm151 118.3C226 97.7 269.5 80 320 80c65.2 0 118.8 29.6 159.9 67.7C518.4 183.5 545 226 558.6 256c-12.6 28-36.6 66.8-70.9 100.9l-53.8-42.2c9.1-17.6 14.2-37.5 14.2-58.7c0-70.7-57.3-128-128-128c-32.2 0-61.7 11.9-84.2 31.5l-46.1-36.1zM394.9 284.2l-81.5-63.9c4.2-8.5 6.6-18.2 6.6-28.3c0-5.5-.7-10.9-2-16c.7 0 1.3 0 2 0c44.2 0 80 35.8 80 80c0 9.9-1.8 19.4-5.1 28.2zm9.4 130.3C378.8 425.4 350.7 432 320 432c-65.2 0-118.8-29.6-159.9-67.7C121.6 328.5 95 286 81.4 256c8.3-18.4 21.5-41.5 39.4-64.8L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5l-41.9-33zM192 256c0 70.7 57.3 128 128 128c13.3 0 26.1-2 38.2-5.8L302 334c-23.5-5.4-43.1-21.2-53.7-42.3l-56.1-44.2c-.2 2.8-.3 5.6-.3 8.5z'/%3E%3C/svg%3E");
}
.fa-circle-exclamation {
  width: 1em;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z'/%3E%3C/svg%3E");
}

/* --- Layout --- */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.hidden { display: none; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.relative { position: relative; }
.absolute { position: absolute; }

/* --- Sizing --- */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-\[500\] { width: 500px; }
.h-\[600px\] { height: 600px; }
.h-16 { height: 4rem; }

/* --- Spacing --- */
.p-10 { padding: 2.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pr-11 { padding-right: 2.75rem; }
.mt-1 { margin-top: 0.25rem; }
.-mt-1 { margin-top: -0.25rem; }
.mb-1 { margin-bottom: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-5 { gap: 1.25rem; }

/* --- Posicionamento --- */
.top-1\/2 { top: 50%; }
.right-3 { right: 0.75rem; }
.-translate-y-1\/2 { transform: translateY(-50%); }

/* --- Tipografia --- */
.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-md { font-size: 1rem; line-height: 1.5rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.tracking-wide { letter-spacing: 0.025em; }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }

/* --- Cores de texto --- */
.text-white { color: #fff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-red-300 { color: #fca5a5; }
.text-red-400 { color: #f87171; }
.text-\[\#FFE600\] { color: #FFE600; }

/* --- Backgrounds --- */
.bg-white { background-color: #fff; }
.bg-\[\#373636\] { background-color: #373636; }
.bg-\[\#FFE600\] { background-color: #FFE600; }
.bg-red-500\/20 { background-color: rgb(239 68 68 / 0.2); }
.bg-cover { background-size: cover; }
.bg-no-repeat { background-repeat: no-repeat; }

/* --- Bordas --- */
.border { border-width: 1px; }
.border-red-500\/40 { border-color: rgb(239 68 68 / 0.4); }
.rounded-md { border-radius: 0.375rem; }
.rounded-3xl { border-radius: 1.5rem; }

/* --- Efeitos --- */
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* --- Estados interativos --- */
.focus\:ring-\[\#FFE600\] { --tw-ring-color: #FFE600; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--tw-ring-color, #3b82f6); }
.hover\:text-gray-600:hover { color: #4b5563; }
.hover\:bg-yellow-400:hover { background-color: #facc15; }
.hover\:underline:hover { text-decoration-line: underline; }
.active\:bg-yellow-500:active { background-color: #eab308; }

/* --- Placeholder --- */
.placeholder-gray-400::placeholder { color: #9ca3af; }

/* --- Responsivo --- */
@media (max-width: 767px) {
  .min-h-screen.flex { justify-content: center; }
  .px-10 { padding-left: 1rem; padding-right: 1rem; }
  .py-12 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .w-\[500\] { width: 100%; max-width: 100%; }
  .h-\[600px\] { height: auto; min-height: 0; }
  .rounded-3xl { border-radius: 1.25rem; }
  .p-10 { padding: 1.75rem; }
  .text-3xl { font-size: 1.5rem; line-height: 2rem; }
}
@media (min-width: 768px) {
  .md\:bg-left { background-position: left; }
}

/* --- Spinner --- */
.spinner {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.btn-loading {
  pointer-events: none;
  opacity: 0.75;
}

/* --- Autofill fix --- */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #fff inset;
  box-shadow: 0 0 0px 1000px #fff inset;
  -webkit-text-fill-color: #111;
}
