/* Global Reset and Styles */
:root {
    --bg-dark: #070a13;
    --card-bg: rgba(13, 18, 33, 0.45);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --primary-grad: linear-gradient(135deg, #ff4d79 0%, #7000ff 50%, #00f0ff 100%);
    --accent-pink: #ff4d79;
    --accent-purple: #7000ff;
    --accent-cyan: #00f0ff;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.background-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.15) 0%, rgba(255, 77, 121, 0.05) 50%, rgba(0, 0, 0, 0) 100%);
    filter: blur(80px);
    z-index: -2;
    pointer-events: none;
}

.background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.005) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
    z-index: -1;
    pointer-events: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 680px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Header & Logo */
.logo-container {
    margin-bottom: 40px;
}

.logo-icon {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px auto;
    filter: drop-shadow(0 0 15px rgba(112, 0, 255, 0.3));
}

.spinning-ring {
    transform-origin: center;
    animation: spin 30s linear infinite;
}

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

.beacon-pulse {
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.3;
        r: 2px;
    }
    100% {
        opacity: 1;
        r: 4px;
        fill: #ff2a5f;
    }
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--text-primary);
}

.logo-text span {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

/* Card */
.card {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 50px 40px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.5px;
    background: var(--primary-grad);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(112, 0, 255, 0.12);
    border: 1px solid rgba(112, 0, 255, 0.3);
    color: #b380ff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
}

.main-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
    background: linear-gradient(180deg, #ffffff 0%, #d1d5db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto 35px auto;
    font-weight: 300;
}

/* Progress Bar */
.progress-container {
    max-width: 480px;
    margin: 0 auto 40px auto;
    text-align: left;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 400;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: var(--primary-grad);
    box-shadow: 0 0 12px rgba(112, 0, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg, 
        rgba(255, 255, 255, .15) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255, 255, 255, .15) 50%, 
        rgba(255, 255, 255, .15) 75%, 
        transparent 75%, 
        transparent
    );
    background-size: 20px 20px;
    animation: progress-stripes 2s linear infinite;
}

@keyframes progress-stripes {
    from { background-position: 0 0; }
    to { background-position: 20px 0; }
}

/* Signup Form */
.signup-container h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.signup-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.input-group {
    position: relative;
    flex: 1;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.signup-form input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.signup-form input:focus {
    border-color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(112, 0, 255, 0.15);
}

.signup-form input:focus + .input-icon {
    color: var(--accent-cyan);
}

.submit-btn {
    padding: 14px 24px;
    border-radius: 12px;
    border: none;
    background: var(--primary-grad);
    color: #ffffff;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(112, 0, 255, 0.3);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(112, 0, 255, 0.5);
    filter: brightness(1.1);
}

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

.form-message {
    margin-top: 15px;
    font-size: 0.9rem;
    min-height: 20px;
    transition: all 0.3s ease;
}

.form-message.success {
    color: #10b981;
}

.form-message.error {
    color: #ef4444;
}

/* Footer & Socials */
.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--text-primary);
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.1);
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

/* Responsive adjustments */
@media(max-width: 580px) {
    .card {
        padding: 40px 20px;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .signup-form {
        flex-direction: column;
    }
    
    .submit-btn {
        justify-content: center;
    }
}
