/* Variáveis CSS */
:root {
    --background: #F8FAFC;
    --excelsior-blue: #050482;
    --text-primary: #111827;
    --text-secondary: rgba(17, 24, 39, 0.8);
    --white: #FFFFFF;
}

/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--background);
    min-height: 100vh;
    line-height: 1.6;
}

/* SEÇÃO HERO */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(to bottom, #f8f9fa, #e5e7eb, #d8dce3, #caced6, #bbc1d1);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 0 100px rgba(5, 4, 130, 0.05);
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(5, 4, 130, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(5, 4, 130, 0.1) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23050482' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Estilos para os modais */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.modal-header {
    border-bottom: 1px solid rgba(5, 4, 130, 0.1);
    background-color: rgba(5, 4, 130, 0.02);
    padding: 1.5rem;
}

.modal-title {
    color: var(--excelsior-blue);
    font-weight: 600;
}

.modal-body {
    padding: 2rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(5, 4, 130, 0.1);
    background-color: rgba(5, 4, 130, 0.02);
    padding: 1rem 1.5rem;
}

/* Modal de contato - cores específicas */
.contact-badge {
    background-color: rgba(5, 4, 130, 0.12);
    color: var(--excelsior-blue);
    padding: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-badge i {
    width: 18px;
    height: 18px;
}

.contact-link {
    color: var(--excelsior-blue);
    font-weight: 600;
}

.contact-link:hover,
.contact-link:focus {
    color: #040370;
    text-decoration: underline;
}

.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--excelsior-blue);
    box-shadow: 0 0 0 3px rgba(5, 4, 130, 0.1);
}

.btn-primary {
    background-color: var(--excelsior-blue);
    border-color: var(--excelsior-blue);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #040370;
    border-color: #040370;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 4, 130, 0.2);
}

/* Linhas animadas */
.animated-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
    animation: dropLine 7s infinite;
}

.line-1 {
    left: 25%;
    animation-delay: 0s;
}

.line-2 {
    left: 50%;
    animation-delay: 2.3s;
}

.line-3 {
    left: 75%;
    animation-delay: 4.6s;
}

@keyframes dropLine {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Container do hero */
.hero-container {
    max-width: 1152px;
    padding: 0 24px;
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-content {
    color: var(--text-primary);
}

/* Logo do hero */
.hero-logo {
    margin-bottom: 32px;
}

.logo-img {
    height: 80px;
    width: auto;
}

/* Título principal */
.hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out;
}

.title-highlight {
    color: var(--excelsior-blue);
}

/* Subtítulo */
.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 768px;
    margin: 0 auto 32px;
    line-height: 1.5;
}

/* Botões do hero */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.primary-btn {
    background-color: var(--excelsior-blue) !important;
    border-color: var(--excelsior-blue) !important;
    color: var(--white) !important;
    height: 56px;
    padding: 16px 32px !important;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    min-width: 192px;
    box-shadow: 0 4px 12px rgba(5, 4, 130, 0.15);
    transition: all 200ms ease;
}

.primary-btn:hover {
    background-color: rgba(5, 4, 130, 0.9) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 4, 130, 0.25);
}

.secondary-btn {
    background-color: transparent !important;
    border: 2px solid var(--excelsior-blue) !important;
    color: var(--excelsior-blue) !important;
    height: 56px;
    padding: 16px 32px !important;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    min-width: 192px;
    transition: all 200ms ease;
}

.secondary-btn:hover {
    background-color: rgba(5, 4, 130, 0.05) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* BOTÕES FLUTUANTES */
.floating-buttons {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--excelsior-blue);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(5, 4, 130, 0.15);
    transition: all 200ms ease;
    position: relative;
}

.floating-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(5, 4, 130, 0.25);
    color: var(--white);
}

.floating-btn i {
    width: 20px;
    height: 20px;
}

/* Tooltip dos botões flutuantes */
.floating-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
}

.floating-btn:hover::before {
    opacity: 1;
}

/* RODAPÉ */
.footer {
    background-color: var(--excelsior-blue);
    color: var(--white);
    padding: 48px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-column {
    text-align: left;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-address {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-address p {
    margin-bottom: 4px;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 16px;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 200ms ease;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 200ms ease;
}

.legal-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries para Desktop */
@media (min-width: 768px) {
    .logo-img {
        height: 96px;
    }
    
    .hero-title {
        font-size: 60px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        text-align: right;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Responsividade para telas muito pequenas */
@media (max-width: 480px) {
    .hero-container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .floating-buttons {
        right: 16px;
    }
    
    .legal-links {
        gap: 16px;
    }
}

/* ===== ESTILOS DO SISTEMA DE LOGIN E OVERLAY ===== */

/* Overlay de aguarde */
.wait-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(3px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.wait-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
    text-align: center;
    max-width: 400px;
}

.wait-box .spinner-border {
    color: #052C65;
    width: 2rem;
    height: 2rem;
}

.wait-box .fw-semibold {
    color: #052C65;
    font-size: 16px;
    margin-top: 12px;
}

.wait-box .small {
    color: #6b7280;
    font-size: 13px;
    margin-top: 8px;
}

.wait-overlay.show {
    display: flex !important;
}

/* Botão de login durante processamento */
#loginSubmitBtn:disabled {
    opacity: 1 !important;
    background-color: #052C65 !important;
    border-color: #052C65 !important;
}

#loginSubmitBtn .btn-loading {
    white-space: nowrap;
}

/* Efeitos de processamento nos inputs */
.form-control.processing {
    background: linear-gradient(90deg, #f8f9fa 25%, #e9ecef 50%, #f8f9fa 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-color: #ced4da;
    color: #6c757d;
    cursor: not-allowed;
}

.form-control.processing::placeholder {
    color: #adb5bd;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Efeito de pulse sutil nos labels */
.form-label.processing {
    opacity: 0.7;
    animation: labelPulse 2s infinite;
}

@keyframes labelPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.9; }
}

/* Efeito no modal durante processamento */
.modal-content.processing {
    pointer-events: none;
}

.modal-content.processing .form-control:not(#loginSubmitBtn) {
    user-select: none;
}
