/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    /* Prevent scrolling for the main view */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    background-color: #0d1117;
    /* Fallback for dark mode */
}

/* Background & Glassmorphism */
/* Using a blurry gradient background similar to the reference */
.background-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #101128 0%, #261025 100%);
    background-size: cover;
    animation: gradientMove 15s ease infinite;
    filter: blur(80px);
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Subtle overlay pattern/noise can be added here if needed to reduce banding, 
   but for now we'll stick to a clean nice gradient */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Slight darkening */
    z-index: -1;
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 500px;
    /* Reduced from 600px */
    padding: 1.5rem;
    text-align: center;
    z-index: 1;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Reduced from 2.5rem */
    align-items: center;
}

/* Branding */
.brand-section {
    margin-bottom: 0.5rem;
    /* Reduced from 1rem */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    /* Reduced from 1.5rem */
}

.slogan-img {
    max-width: 350px;
    /* Increased from 220px */
    width: 90%;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.logo-img {
    width: 140px;
    /* Increased from 90px */
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

/* Typography */
.headline {
    font-size: 2rem;
    /* Reduced from 2.5rem */
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.subtext {
    font-size: 1rem;
    /* Reduced from 1.1rem */
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    /* Slightly more transparent */
    margin-bottom: 0.5rem;
    max-width: 420px;
    /* Reduced width for better reading */
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Progress Bar */
.progress-section {
    width: 100%;
    margin-bottom: 0.5rem;
}

.progress-container {
    width: 100%;
    height: 32px;
    /* Reduced from 48px */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Thinner border */
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 3px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: #ffffff;
    border-radius: 999px;
    /* Width set inline */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    transition: width 1s ease-out;
}

.progress-text {
    position: absolute;
    right: 15px;
    font-weight: 500;
    color: #ffffff;
    font-size: 0.85rem;
    /* Smaller text */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Signup Form */
.signup-section {
    width: 100%;
    max-width: 400px;
    /* Reduced width */
}

.signup-form {
    display: flex;
    background: rgba(30, 35, 45, 0.5);
    /* Slightly darker/more transparent */
    border-radius: 999px;
    /* Fully, perfectly round pills */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    height: 50px;
    /* Fixed height for consistency */
}

.signup-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 1.5rem;
    color: white;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
}

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

.signup-form button {
    background: rgba(255, 255, 255, 0.1);
    /* Subtle separation */
    color: white;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 2rem;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.signup-form button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Success Message */
.hidden {
    display: none;
}

.success-message {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .headline {
        font-size: 2rem;
    }

    .container {
        padding: 1.5rem;
    }

    .signup-form {
        flex-direction: row;
        /* Keep it row for mobile if possible, otherwise column */
    }

    .signup-form button {
        padding: 0 1.5rem;
    }
}