@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

html, body {
    height: auto;
    min-height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: background-color 0.4s ease;
}

h1, h2, h3, h4, .brand-font {
    font-family: 'Outfit', sans-serif;
}

/* Scroll vertical em telas de smartphone.
   Em CSS puro (e nao em variantes md: do Tailwind) porque o output.css
   compilado nao contem md:items-center nem md:overflow-hidden. */
@media (max-width: 767px) {
    .login-shell {
        align-items: flex-start;
    }
    .login-card {
        overflow: visible;
        min-height: auto;
    }
}

/* Animacoes e Transicoes na Pagina de Login */
@keyframes float-particle {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.6; }
    50% { transform: translateY(-15px) scale(1.1); opacity: 0.9; }
}
@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slide-in-left {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.animate-float-1 { animation: float-particle 5s ease-in-out infinite; }
.animate-float-2 { animation: float-particle 7s ease-in-out infinite; animation-delay: 1.5s; }
.animate-slide-right { animation: slide-in-right 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-slide-left { animation: slide-in-left 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-pulse-glow { animation: pulse-glow 4s ease-in-out infinite; }

/* Glassmorphism e PrimeFaces Overrides */
.glass-panel {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}
.dark .glass-panel {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.ui-autocomplete, .ui-password { width: 100% !important; }
.ui-autocomplete-input, .ui-password input {
    width: 100% !important;
    padding: 0.85rem 0.85rem 0.85rem 2.75rem !important;
    border-radius: 1rem !important;
    border: 1.5px solid #e2e8f0 !important;
    box-sizing: border-box !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    background: rgba(255, 255, 255, 0.9) !important;
}
.ui-autocomplete-input:focus, .ui-password input:focus {
    border-color: #0e5f29 !important;
    box-shadow: 0 0 0 4px rgba(14, 95, 41, 0.18) !important;
    outline: none !important;
}
.dark .ui-autocomplete-input, .dark .ui-password input {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
.dark .ui-autocomplete-input:focus, .dark .ui-password input:focus {
    border-color: #4dcc75 !important;
    box-shadow: 0 0 0 4px rgba(77, 204, 117, 0.2) !important;
}
.ui-password-toggle { right: 14px !important; color: #94a3b8 !important; }

.ui-button {
    background: #eab308 !important;
    border: none !important;
    border-radius: 1rem !important;
    padding: 0.85rem !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 10px 20px -5px rgba(234, 179, 8, 0.4) !important;
    color: #1f2937 !important;
    transition: all 0.3s ease !important;
}
.ui-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 25px -5px rgba(234, 179, 8, 0.5) !important;
    background: #ca8a04 !important;
    color: #1f2937 !important;
}

/* Mode Switcher Transition Tab */
.mode-tab {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mode-tab.active {
    background: #eab308;
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
}

/* Dark Mode Overrides and Polvo Brand Styling */
.dark .bg-gray-50 { background-color: #0a0820 !important; }
.dark .bg-white { background-color: #161245 !important; }
.dark .bg-gray-900 { background-color: #08061a !important; }
.dark .bg-gray-800 { background-color: #0e0b2e !important; }
.dark .text-gray-900 { color: #f8fafc !important; }
.dark .text-gray-800 { color: #f1f5f9 !important; }
.dark .text-gray-600 { color: #cbd5e1 !important; }
.dark .text-gray-500 { color: #94a3b8 !important; }
.dark .border-gray-100 { border-color: #211c63 !important; }
.dark .border-gray-200 { border-color: #211c63 !important; }
.dark .border-gray-700 { border-color: #211c63 !important; }
.dark .border-gray-800 { border-color: #211c63 !important; }
