/* ============================================
   VARIÁVEIS E RESET
   ============================================ */
:root {
    --primary: #e94560;
    --primary-dark: #c73e54;
    --secondary: #0f3460;
    --dark: #1a1a2e;
    --darker: #16213e;
    --light: #eaeaea;
    --white: #ffffff;
    --success: #00d9ff;
    --warning: #ffc107;
    --danger: #ff4757;
    --gradient-primary: linear-gradient(135deg, #e94560 0%, #0f3460 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 60px rgba(233, 69, 96, 0.2);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--dark);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   PARTICLES BACKGROUND
   ============================================ */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-circle {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(233, 69, 96, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loader-text {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--light);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
}

.logo i {
    font-size: 2.5rem;
}

.subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--success);
    margin-top: 8px;
    text-transform: uppercase;
}

.fan-page {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

/* ============================================
   STATUS CARD
   ============================================ */
.status-card {
    background: var(--gradient-dark);
    border: 1px solid rgba(233, 69, 96, 0.2);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.8s ease 0.2s both;
    transition: var(--transition);
}

.status-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(233, 69, 96, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(233, 69, 96, 0); }
}

.status-info {
    flex: 1;
}

.status-info h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--light);
}

.progress-container {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 5px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.status-numbers {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.vagas-restantes {
    font-size: 0.9rem;
    color: var(--success);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vagas-restantes.esgotado {
    color: var(--danger);
}

/* ============================================
   FORM SECTION
   ============================================ */
.form-section {
    background: var(--gradient-dark);
    border: 1px solid rgba(233, 69, 96, 0.2);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
}

.form-header h2 {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-header p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   INPUT GROUPS
   ============================================ */
.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 8px;
}

.input-group label i {
    color: var(--primary);
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition);
    outline: none;
}

.input-group input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.1);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.email-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

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

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 12px;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* ============================================
   ESGOTADO SECTION
   ============================================ */
.esgotado-section {
    background: var(--gradient-dark);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.esgotado-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 71, 87, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: var(--danger);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.esgotado-section h2 {
    font-size: 1.5rem;
    color: var(--danger);
    margin-bottom: 10px;
}

.esgotado-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    margin-top: auto;
    text-align: center;
    padding: 30px 0;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-5px) rotate(10deg);
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.3);
}

.footer p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 5px;
}

.developed-by {
    color: var(--primary) !important;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .status-card {
        flex-direction: column;
        text-align: center;
    }
    
    .form-section {
        padding: 20px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}
