/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #FFFFFF;
    line-height: 1.4;
    overflow-x: hidden;
    position: relative;
    background: #011e54; /* Cor de fundo principal */
}
/* ===== BACKGROUND RESPONSIVO ===== */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Desktop - usa background.webp otimizado */
@media (min-width: 700px) {
    .background-image {
        background: 
            linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)),
            url('../img/background.webp') no-repeat center center;
        background-size: 100% 100%;
        background-position: center 150%; /* Alterado: de center center para center 40% */
    }
    
    /* Forçar redimensionamento proporcional para telas muito largas */
    @media (min-aspect-ratio: 16/9) {
        .background-image {
            background-size: cover;
            background-position: center 10%; /* Alterado aqui também */
        }
    }
}

/* Mobile - usa backgroundmobile.webp otimizado */
@media (max-width: 768px) {
    .background-image {
        background: 
            linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)),
            url('../img/backgroundmobile.webp') no-repeat center center;
        background-size: cover;
    }
    
    /* Para dispositivos em modo retrato */
    @media (orientation: portrait) {
        .background-image {
            background-size: cover;
            background-position: center top;
        }
    }
    
    /* Para dispositivos em modo paisagem */
    @media (orientation: landscape) and (max-width: 768px) {
        .background-image {
            background-size: cover;
            background-position: center center;
        }
    }
}

/* ===== CONTAINER PRINCIPAL ===== */
.main-container {
    max-width: 100%;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 80px;
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
}

/* Classe para centralizar quando redirecionar */
.main-container.redirect-center {
    align-items: center;
    text-align: center;
}

.main-container.redirect-center .title-container,
.main-container.redirect-center .form-container,
.main-container.redirect-center .footer,
.main-container.redirect-center .terms-text {
    text-align: center;
    align-items: center;
}

/* ===== LOGO ELEGANTE ===== */
.logo-container {
    margin-bottom: 60px;
    position: relative;
}

.logo {
    max-width: 180px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(36, 174, 221, 0.3));
}

/* ===== TÍTULOS ELEGANTES ===== */
.title-container {
    text-align: left;
    margin-bottom: 50px;
    width: 100%;
    max-width: 650px;
}

.main-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #24aedd; /* Cor principal - azul claro */
    position: relative;
    display: inline-block;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, #24aedd, transparent);
}

.sub-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 25px;
    color: #1072ae; /* Cor secundária - azul médio */
    font-style: italic;
    letter-spacing: 1px;
}

.highlight-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #FFFFFF;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.description {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-weight: 300;
    max-width: 500px;
}

/* ===== FORMULÁRIO ===== */
.form-container {
    width: 100%;
    max-width: 400px;
    margin: 0 0 40px 0;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    font-family: inherit;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(36, 174, 221, 0.3);
    border-radius: 20px;
    outline: none;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-input:focus {
    border-color: #24aedd;
    background: rgba(36, 174, 221, 0.1);
    box-shadow: 0 0 0 2px rgba(36, 174, 221, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #FFFFFF;
    background: linear-gradient(135deg, #24aedd, #1072ae);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    position: relative;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #36b8e8, #1a8bc5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(36, 174, 221, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #24aedd, #1072ae);
}

.btn-text {
    position: relative;
}

.btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #FFFFFF;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.submit-btn.loading .btn-spinner {
    display: block;
}

/* ===== TERMOS ELEGANTES ===== */
.terms-container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
}

.terms-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    text-align: left;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.terms-link {
    color: #24aedd;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* ===== FOOTER ELEGANTE ===== */
.footer {
    text-align: left;
    padding: 20px 0;
    width: 100%;
    margin-top: 20px;
    border-top: 1px solid rgba(36, 174, 221, 0.2);
}

.copyright {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    font-weight: 300;
}

.platform {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.platform strong {
    color: #24aedd;
    font-weight: 500;
}

/* ===== MODAL ELEGANTE ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 30, 84, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(1, 30, 84, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 50px 40px;
    text-align: center;
    max-width: 450px;
    width: 100%;
    border: 1px solid rgba(36, 174, 221, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: modalAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-icon {
    font-size: 4rem;
    color: #24aedd;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #FFFFFF;
    letter-spacing: 1px;
}

.modal-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #24aedd;
    font-weight: 500;
    margin-bottom: 15px;
}

.modal-subtext {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.5;
    font-weight: 300;
}

.modal-btn {
    background: linear-gradient(135deg, #24aedd, #1072ae);
    color: #FFFFFF;
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.modal-btn:hover {
    background: linear-gradient(135deg, #36b8e8, #1a8bc5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(36, 174, 221, 0.3);
}

/* ===== UTILITÁRIOS ===== */
.input-error {
    border-color: #ff4444 !important;
    background: rgba(255, 68, 68, 0.1) !important;
}

.error-message {
    color: #ff4444;
    font-size: 0.8rem;
    margin-top: 5px;
    padding-left: 5px;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.hidden {
    display: none !important;
}

/* ===== NOTIFICAÇÕES ELEGANTES ===== */
.notification {
    position: fixed;
    top: 25px;
    right: 25px;
    background: rgba(1, 30, 84, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 18px 22px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    animation: slideInRight 0.3s ease;
    min-width: 320px;
    max-width: 400px;
    border: 1px solid rgba(36, 174, 221, 0.3);
}

.notification.success {
    border-left: 4px solid #24aedd;
}

.notification.error {
    border-left: 4px solid #ff4444;
}

.notification.warning {
    border-left: 4px solid #ffa500;
}

.notification.info {
    border-left: 4px solid #1072ae;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.notification-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: rgba(36, 174, 221, 0.2);
    color: #FFFFFF;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== ANIMAÇÕES ===== */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .main-container {
        padding: 40px 30px;
        align-items: center;
        text-align: center;
        justify-content: center;
    }
    
    .title-container {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .main-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .main-title::after {
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
    }
    
    .sub-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .highlight-text {
        font-size: 1rem;
    }
    
    .description {
        font-size: 1rem;
        margin: 0 auto;
    }
    
    .form-container {
        margin: 0 auto 40px;
    }
    
    .logo-container {
        margin-bottom: 40px;
    }
    
    .logo {
        max-width: 160px;
    }
    
    .terms-text {
        text-align: center;
        font-size: 0.7rem;
    }
    
    .footer {
        text-align: center;
        padding: 15px 0;
    }
    
    .notification {
        min-width: 280px;
        max-width: 90%;
        right: 5%;
        left: 5%;
        margin: 0 auto;
        padding: 15px 20px;
    }
}

@media (min-width: 769px) {
    .main-container {
        padding-left: 80px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .sub-title {
        font-size: 1.4rem;
    }
    
    .description {
        font-size: 0.95rem;
    }
    
    .modal-content {
        padding: 30px 20px;
        max-width: 90%;
    }
    
    .modal-title {
        font-size: 1.6rem;
    }
}

/* ===== EFEITOS ESPECIAIS ===== */
.blue-accent {
    color: #24aedd;
}

.divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, #24aedd, transparent);
    margin: 20px 0;
}

/* ===== SCROLL SUAVE ===== */
html {
    scroll-behavior: smooth;
}

/* ===== SELEÇÃO DE TEXTO ===== */
::selection {
    background: rgba(36, 174, 221, 0.3);
    color: #FFFFFF;
}

::-moz-selection {
    background: rgba(36, 174, 221, 0.3);
    color: #FFFFFF;
}