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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Video Background */
#background-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
    /* Ensure video loads and plays properly */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Video loading state */
#background-video:not([src]) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Overlay for better text readability */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: -1;
}

/* Main content */
.main-content {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

/* Header */
.header {
    margin-bottom: 3rem;
}

.title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 300;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Signup section */
.signup-section {
    margin-bottom: 3rem;
}

.signup-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.signup-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.signup-card h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.signup-card p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Form styles */
.signup-form {
    width: 100%;
}

.input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

input[type="email"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.signup-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    font-family: inherit;
}

.signup-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #7c8aea 0%, #8a5ba2 100%);
}

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

.signup-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.btn-text, .btn-loading {
    transition: opacity 0.3s ease;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.signup-btn.loading .btn-text {
    opacity: 0;
}

.signup-btn.loading .btn-loading {
    opacity: 1;
}

.spinner {
    width: 20px;
    height: 20px;
    color: white;
}

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

.form-message.success {
    color: #4ade80;
}

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

/* Footer */
.footer {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }
    
    input[type="email"] {
        min-width: 100%;
    }
    
    .signup-card {
        padding: 2rem 1.5rem;
    }
    
    .main-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .signup-card {
        padding: 1.5rem 1rem;
    }
    
    .signup-card h2 {
        font-size: 1.5rem;
    }
    
    .signup-card p {
        font-size: 0.9rem;
    }
}

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

.signup-card {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.header {
    animation: fadeInUp 0.8s ease-out both;
}
