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

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    background-color: #0F172A;
    /* Dark blue background */
    color: #E2E8F0;
}

/* Landing page styles */
.landing-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
}

.landing-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    gap: 4rem;
    align-items: center;
    background: rgba(30, 41, 59, 0.7);
    /* Slightly lighter than background */
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.hero-image {
    flex: 1;
    max-width: 50%;
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

.signup-section {
    flex: 1;
    max-width: 50%;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #F8FAFC;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.2;
    background: linear-gradient(135deg, #38BDF8 0%, #818CF8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    color: #94A3B8;
    margin-bottom: 2rem;
    font-weight: 400;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Increased gap to accommodate error messages */
}

.form-group {
    width: 100%;
    position: relative;
    margin-bottom: 0.5rem;
    /* Added margin for error message space */
}

.form-group-row {
    display: flex;
    gap: 1rem;
    width: 100%;
    margin-bottom: 0.5rem;
    /* Added margin for error message space */
}

.form-group-row .form-group {
    flex: 1;
}

.error-message {
    color: #FB7185;
    font-size: 0.8rem;
    position: absolute;
    left: 0;
    bottom: -1.2rem;
    transition: all 0.3s ease;
}

input[type="email"],
input[type="text"],
input[type="tel"] {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    color: #F8FAFC;
    transition: all 0.3s ease;
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus {
    border-color: #38BDF8;
    outline: none;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
}

input[type="email"]::placeholder,
input[type="text"]::placeholder,
input[type="tel"]::placeholder {
    color: #64748B;
}

input:invalid:not(:placeholder-shown) {
    border-color: #FB7185;
}

input:invalid:not(:placeholder-shown):focus {
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.2);
}

.signup-button {
    background: linear-gradient(135deg, #38BDF8 0%, #818CF8 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
    margin-top: 0.5rem;
    /* Added margin to account for error messages */
}

.signup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(56, 189, 248, 0.4);
}

.signup-button:active {
    transform: translateY(0);
}

.form-feedback {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-feedback.success {
    color: #34D399;
}

.form-feedback.error {
    color: #FB7185;
}

/* Responsive design */
@media (max-width: 768px) {
    .landing-content {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }

    .hero-image,
    .signup-section {
        max-width: 100%;
    }

    h1 {
        font-size: 2.3rem;
    }

    .landing-container {
        padding: 1rem;
    }

    .form-group-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .error-message {
        bottom: -1.1rem;
        /* Adjusted for mobile */
        font-size: 0.75rem;
    }
}