/**
 * PROPRIETARY SOFTWARE
 * Copyright (c) 2025-present ShuttleFeed. All rights reserved.
 * Unauthorized copying, use, or distribution is strictly prohibited.
 */

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

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #161b2b;
    background-image: radial-gradient(circle at 80% 10%, rgba(100, 50, 200, 0.08) 0%, transparent 60%),
                      radial-gradient(circle at 20% 90%, rgba(200, 50, 150, 0.08) 0%, transparent 60%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 60px; /* Space for footer */
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

main {
    text-align: center;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.logo {
    margin-bottom: 1rem;
    animation: fadeIn 0.8s ease-in-out;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #b14aff 0%, #ff4a7f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #b14aff 0%, #ff4a7f 100%);
    border-radius: 3px;
}

.coming-soon {
    animation: fadeIn 1s ease-in-out;
}

.coming-soon h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #b14aff 0%, #ff4a7f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(177, 74, 255, 0.2);
}

.coming-soon p {
    font-size: 1.25rem;
    color: #a0a0b0;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    white-space: normal;
}

.highlight {
    background: linear-gradient(90deg, #b14aff 0%, #ff4a7f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
    display: inline;
    white-space: nowrap;
}

.signup-form {
    margin: 0 auto;
    width: 100%;
    max-width: 460px;
    animation: fadeIn 1.2s ease-in-out;
}

.input-group {
    display: flex;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

input[type="text"] {
    flex: 1;
    padding: 1rem 1.4rem;
    border: none;
    background-color: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.2s ease;
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

input[type="text"]:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
}

input[type="text"].invalid {
    border-left: 3px solid #f87171;
    background-color: rgba(248, 113, 113, 0.05);
}

/* Fix for browser autofill styling */
input[type="text"]:-webkit-autofill,
input[type="text"]:-webkit-autofill:hover,
input[type="text"]:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0px 1000px rgba(30, 35, 50, 0.9) inset;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #fff;
}

/* Firefox autofill fix */
input[type="text"]:autofill {
    background-color: rgba(30, 35, 50, 0.9) !important;
    color: #fff !important;
}

button {
    padding: 1rem 1.8rem;
    background: linear-gradient(90deg, #b14aff 0%, #c74aff 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(177, 74, 255, 0.2);
}

button:hover {
    background: linear-gradient(90deg, #c14aff 0%, #d74aff 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(177, 74, 255, 0.3);
}

button:disabled {
    background-color: #8a3ac5;
    cursor: not-allowed;
    opacity: 0.7;
}

#form-message {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

#form-message.visible {
    opacity: 1;
    max-height: 100px;
    margin-bottom: 0.5rem;
}

.success {
    color: #4ade80;
    background-color: rgba(74, 222, 128, 0.1);
    border-left: 3px solid #4ade80;
}

.error {
    color: #fff;
    background: linear-gradient(90deg, rgba(248, 113, 113, 0.2) 0%, rgba(248, 113, 113, 0.1) 100%);
    border-left: 3px solid #f87171;
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.15);
}

footer {
    text-align: center;
    padding: 1.5rem 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    font-weight: 400;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    background-color: rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.3rem;
    }

    .coming-soon h1 {
        font-size: 3.2rem;
    }

    .coming-soon p {
        font-size: 1rem;
    }

    .input-group {
        flex-direction: column;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        background-color: rgba(255, 255, 255, 0.02);
    }

    input[type="text"] {
        border-radius: 12px 12px 0 0;
        margin-bottom: 0;
        padding: 1.2rem;
        box-shadow: none;
    }

    button {
        border-radius: 0 0 12px 12px;
        width: 100%;
        padding: 1.2rem;
    }

    body {
        padding-bottom: 80px; /* Increased space for footer on mobile */
    }

    footer {
        height: 80px;
    }
}
