/* =====================================================
   STREAMIX - FORMULÁRIO COMPACTO E ELEGANTE
   Design limpo e profissional
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* =================== VARIÁVEIS SIMPLIFICADAS =================== */
:root {
    /* Cores STREAMIX */
    --streamix-primary: #2563eb;
    --streamix-secondary: #1e40af;
    --streamix-accent: #3b82f6;
    --streamix-success: #10b981;
    --streamix-error: #ef4444;
    --streamix-warning: #f59e0b;
    
    /* Backgrounds */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.8);
    --bg-input: rgba(51, 65, 85, 0.6);
    
    /* Textos */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    /* Espaçamentos COMPACTOS */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.25rem;
    
    /* Outros */
    --radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --border: 1px solid rgba(148, 163, 184, 0.2);
}

/* =================== RESET BÁSICO =================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%), 
                url('https://streamix.top/wp-content/uploads/2023/11/Slice-1.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

/* =================== CONTAINER PRINCIPAL =================== */
.container {
    width: 100%;
    max-width: 400px;
}

/* =================== HEADER COMPACTO =================== */
.header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--streamix-primary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.logo i {
    color: var(--streamix-accent);
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =================== CARD DO FORMULÁRIO =================== */
.form-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: var(--border);
    border-radius: var(--radius);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
}

/* =================== HEADER DO FORMULÁRIO =================== */
.form-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.form-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.form-header h1 i {
    color: var(--streamix-accent);
    font-size: 1.1rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* =================== INPUTS COMPACTOS =================== */
.input-group {
    margin-bottom: var(--space-lg);
}

.label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.label i {
    width: 16px;
    color: var(--streamix-accent);
    font-size: 0.8rem;
}

.input,
.select {
    width: 100%;
    height: 42px;
    padding: 0 var(--space-md);
    background: var(--bg-input);
    border: var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    outline: none;
}

.input::placeholder {
    color: var(--text-muted);
}

.input:focus,
.select:focus {
    border-color: var(--streamix-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input.valid,
.select.valid {
    border-color: var(--streamix-success);
}

.input.invalid,
.select.invalid {
    border-color: var(--streamix-error);
}

/* =================== SELECT CUSTOMIZADO =================== */
.select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%2394a3b8' viewBox='0 0 16 16'%3e%3cpath d='M8 13.1l-8-8 2.1-2.1 5.9 5.9 5.9-5.9 2.1 2.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: var(--space-sm);
}

/* =================== INFO BOX COMPACTA =================== */
.info-box {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius);
    padding: var(--space-md);
    margin: var(--space-lg) 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    width: 16px;
    font-size: 0.8rem;
}

.info-item.text-info i { color: var(--streamix-accent); }
.info-item.text-primary i { color: var(--streamix-primary); }
.info-item.text-success i { color: var(--streamix-success); }

/* =================== BOTÃO COMPACTO =================== */
.submit-btn {
    width: 100%;
    height: 44px;
    background: var(--streamix-primary);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin: var(--space-xl) 0 var(--space-lg);
}

.submit-btn:hover {
    background: var(--streamix-secondary);
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =================== SUBMIT INFO =================== */
.submit-info {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.submit-info small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* =================== FOOTER COMPACTO =================== */
.footer {
    margin-top: var(--space-lg);
    text-align: center;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    margin-bottom: var(--space-md);
}

.back-btn:hover {
    color: var(--text-primary);
    border-color: var(--streamix-primary);
}

.footer-copy {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.footer-copy p {
    margin-bottom: var(--space-xs);
}

/* =================== LOADING SIMPLES =================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    background: var(--streamix-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h3 {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.loading-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* =================== ALERTAS SIMPLES =================== */
.alert-box {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 300px;
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.8rem;
    box-shadow: var(--shadow);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transform: translateX(100%);
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    to { transform: translateX(0); }
}

.alert-box.success { border-left: 3px solid var(--streamix-success); }
.alert-box.error { border-left: 3px solid var(--streamix-error); }
.alert-box.warning { border-left: 3px solid var(--streamix-warning); }
.alert-box.info { border-left: 3px solid var(--streamix-accent); }

.alert-box.success i { color: var(--streamix-success); }
.alert-box.error i { color: var(--streamix-error); }
.alert-box.warning i { color: var(--streamix-warning); }
.alert-box.info i { color: var(--streamix-accent); }

/* =================== MENSAGENS DE ERRO =================== */
.error-message {
    font-size: 0.75rem;
    color: var(--streamix-error);
    margin-top: var(--space-xs);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.error-message.show {
    opacity: 1;
}

/* =================== CLASSES AUXILIARES =================== */
.text-primary { color: var(--streamix-primary); }
.text-success { color: var(--streamix-success); }
.text-error { color: var(--streamix-error); }
.text-secondary { color: var(--text-secondary); }

/* Estados de focus */
.input-group.focused .label {
    color: var(--streamix-primary);
}

/* =================== RESPONSIVIDADE =================== */
@media (max-width: 480px) {
    body {
        padding: var(--space-md);
    }
    
    .form-card {
        padding: var(--space-lg);
    }
    
    .input,
    .select,
    .submit-btn {
        font-size: 16px; /* Previne zoom no iOS */
    }
    
    .alert-box {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* =================== REMOVER ANIMAÇÕES DESNECESSÁRIAS =================== */
.background-animation,
.floating-shape {
    display: none;
} 