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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: white;
    overflow-x: hidden;
}

/* Main Container */
.main-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #1f2937 0%, #7c3aed 50%, #ec4899 100%);
    position: relative;
    overflow: hidden;
}

/* Background Particles */
.background-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #f472b6;
    border-radius: 50%;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Navigation */
.navigation {
    position: relative;
    z-index: 50;
    padding: 1.5rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.nav-brand img:hover {
    transform: scale(1.05);
}

.brand-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #f472b6, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #f472b6;
}

.nav-button {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-button:hover {
    background: linear-gradient(135deg, #db2777, #7c3aed);
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

/* Signup Section */
.signup-section {
    position: relative;
    z-index: 10;
    padding: 2rem 0;
}

.signup-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    padding: 3rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(2rem);
    opacity: 0;
    transition: all 1s ease;
    max-width: 500px;
    margin: 0 auto;
}

.signup-container.visible {
    transform: translateY(0);
    opacity: 1;
}

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

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.brand-icon-large {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: pulse 2s infinite;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #f472b6, #a855f7, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

/* Emotional Copy */
.emotional-copy {
    margin-bottom: 3rem;
}

.quote-container {
    margin-bottom: 2rem;
}

.quote-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #e5e7eb;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    min-height: 1.7em;
}

.quote-text.typing::after {
    content: '|';
    color: #f472b6;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.quote-text:first-child::before {
    content: '"';
    font-size: 3rem;
    color: #f472b6;
    position: absolute;
    left: -2rem;
    top: -1rem;
    opacity: 0.5;
}

.quote-text:last-child::after {
    content: '"';
    font-size: 3rem;
    color: #f472b6;
    position: absolute;
    right: -1.5rem;
    bottom: -2rem;
    opacity: 0.5;
}

.discovery-text {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #f472b6, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

/* Sign In Button */
.signin-container {
    margin-bottom: 2rem;
}

.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    background: white;
    color: #374151;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.google-signin-btn:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

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

.google-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.signup-footer {
    margin-top: 2rem;
}

.terms-text {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0;
}

.footer-link {
    color: #f472b6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #a855f7;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .signup-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
        border-radius: 1.5rem;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .quote-text {
        font-size: 1rem;
    }
    
    .quote-text:first-child::before,
    .quote-text:last-child::after {
        display: none;
    }
    
    .discovery-text {
        font-size: 1.25rem;
    }
    
    .google-signin-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .signup-container {
        padding: 1.5rem 1rem;
    }
    
    .brand-icon-large {
        width: 3rem;
        height: 3rem;
    }
    
    .brand-title {
        font-size: 1.75rem;
    }
    
    .quote-text {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .discovery-text {
        font-size: 1.125rem;
    }
}

/* Animation for entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signup-container {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

/* Gradient animation */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.brand-title,
.discovery-text {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Hover effects */
.quote-text {
    transition: all 0.3s ease;
}

.quote-text:hover {
    color: #f3f4f6;
    transform: translateX(0.5rem);
}

/* Loading state */
body.loaded {
    opacity: 1;
}

/* Touch device optimizations */
.touch-device .google-signin-btn:hover {
    transform: none;
    background: white;
}

/* Focus states for accessibility */
.google-signin-btn:focus {
    outline: 2px solid #f472b6;
    outline-offset: 2px;
}

.footer-link:focus {
    outline: 2px solid #f472b6;
    outline-offset: 2px;
    border-radius: 0.25rem;
}