/* ========================================
   Optin Page - Lead Capture
   Elegante, minimalista, modo oscuro
   ======================================== */

.optin-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1d 0%, #0d0d0f 100%);
    color: #ffffff;
    padding: 2rem 1rem;
    font-family: 'League Spartan', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.optin-container {
    max-width: 900px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #242428;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Visual Side (Left) */
.optin-visual {
    background-size: cover;
    background-position: center;
    background-color: #1a1a1d;
    min-height: 500px;
    position: relative;
}

.optin-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(230, 81, 0, 0.15) 0%, rgba(26, 26, 29, 0.3) 100%);
}

/* Form Side (Right) */
.optin-content {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.optin-header {
    margin-bottom: 2rem;
}

.optin-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.optin-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
    line-height: 1.3;
    font-family: 'League Spartan', sans-serif;
    letter-spacing: -0.01em;
}

.optin-subtitle {
    font-size: 0.9375rem;
    color: #b8b8b8;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-family: 'League Spartan', sans-serif;
}

.optin-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(230, 81, 0, 0.12);
    color: #ff9966;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 20px;
    margin-top: 1rem;
    letter-spacing: 0.03em;
    font-family: 'League Spartan', sans-serif;
}

/* Form */
.optin-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.optin-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.optin-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #d0d0d0;
    letter-spacing: 0.01em;
    font-family: 'League Spartan', sans-serif;
}

.optin-input {
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    font-family: 'League Spartan', sans-serif;
}

.optin-input:focus {
    outline: none;
    border-color: rgba(230, 81, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.1);
}

.optin-input::placeholder {
    color: #6a6a6a;
}

.optin-button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #E65100 0%, #d84315 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.3);
    font-family: 'League Spartan', sans-serif;
    letter-spacing: 0.01em;
}

.optin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 81, 0, 0.4);
}

.optin-button:active {
    transform: translateY(0);
}

.optin-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Privacy notice */
.optin-privacy {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
    margin-top: 1.5rem;
    line-height: 1.5;
}

.optin-privacy a {
    color: #ff9966;
    text-decoration: none;
}

.optin-privacy a:hover {
    text-decoration: underline;
}

/* Success state */
.optin-success {
    text-align: center;
    padding: 3rem 2rem;
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.optin-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.optin-success-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    font-family: 'League Spartan', sans-serif;
    letter-spacing: -0.01em;
}

.optin-success-message {
    color: #c0c0c0;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
    font-family: 'League Spartan', sans-serif;
}

.optin-redirect-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #888;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-family: 'League Spartan', sans-serif;
}

.optin-redirect-text::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #888;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Loading state */
.optin-loading {
    position: relative;
}

.optin-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(36, 36, 40, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .optin-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .optin-visual {
        min-height: 200px;
        order: -1;
    }
    
    .optin-content {
        padding: 2rem 1.5rem;
    }
    
    .optin-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .optin-content {
        padding: 1.75rem 1.25rem;
    }
    
    .optin-title {
        font-size: 1.375rem;
    }
}
