/* Welcome Page Styles - Website Version */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    line-height: 1.6;
    color: #333;
}

.welcome-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding: 60px 40px;
    margin-bottom: 40px;
}

.logo-large {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

h1 {
    font-size: 36px;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 18px;
    color: #64748b;
    max-width: 500px;
    margin: 0 auto;
}

/* Authentication Section */
.auth-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 50px 40px;
    margin-bottom: 40px;
}

.auth-section h2 {
    text-align: center;
    color: #1a1a1a;
    font-size: 28px;
    margin-bottom: 40px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.auth-container {
    max-width: 400px;
    margin: 0 auto;
}

/* Google Sign In Button */
.google-signin-button {
    width: 100%;
    background: white;
    border: 2px solid #e2e8f0;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.google-signin-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(66, 133, 244, 0.05), transparent);
    transition: left 0.6s;
}

.google-signin-button:hover::before {
    left: 100%;
}

.google-signin-button:hover {
    background: #f8fafc;
    border-color: #4285f4;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
    transform: translateY(-2px);
}

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

/* Divider */
.divider {
    text-align: center;
    margin: 32px 0;
    position: relative;
}

.divider span {
    background: white;
    padding: 0 20px;
    color: #94a3b8;
    font-size: 14px;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
}

/* Auth Toggle */
.auth-toggle {
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 24px;
    position: relative;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.auth-tab.active {
    background: white;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Auth Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form.hidden {
    display: none;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    font-weight: 400;
}

.form-group input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.1);
    background: #fefeff;
}

.form-group input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.submit-button {
    background: linear-gradient(135deg, #4285f4, #3367d6);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    margin-top: 8px;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    background: linear-gradient(135deg, #3367d6, #2952cc);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.3);
    transform: translateY(-2px);
}

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

.submit-button:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.forgot-password-btn {
    background: none;
    border: none;
    color: #4285f4;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    padding: 12px;
    margin-top: 8px;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
}

.forgot-password-btn:hover {
    color: #3367d6;
    background: rgba(66, 133, 244, 0.05);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.spinner.hidden {
    display: none;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.button-text {
    transition: opacity 0.3s ease;
}

.submit-button:disabled .button-text {
    opacity: 0;
}

/* Auth Messages */
.auth-message {
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    margin-top: 16px;
    text-align: center;
    font-weight: 500;
    border: 1px solid transparent;
}

.auth-message.error {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.auth-message.success {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}

.auth-message.hidden {
    display: none;
}

/* Why Choose Section */
.why-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 50px 40px;
    margin-bottom: 40px;
}

.why-section h2 {
    text-align: center;
    color: #1a1a1a;
    font-size: 28px;
    margin-bottom: 50px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.benefit-card {
    background: #ffffff;
    text-align: center;
    padding: 36px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4285f4, #34a853, #fbbc05);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: #e2e8f0;
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.benefit-card h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.benefit-card p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    font-weight: 400;
}

/* Tutorial Section */
.tutorial-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 50px 40px;
    margin-bottom: 40px;
}

.tutorial-section h2 {
    text-align: center;
    color: #1a1a1a;
    font-size: 28px;
    margin-bottom: 40px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #f1f5f9;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

/* Success Section */
.success-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding: 60px 40px;
    margin-bottom: 40px;
}

.success-section.hidden {
    display: none;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.success-section h2 {
    color: #1a1a1a;
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.4px;
}

.success-section p {
    color: #64748b;
    font-size: 18px;
    margin-bottom: 40px;
}

.next-steps {
    background: #f8fafc;
    border-radius: 16px;
    padding: 32px;
    margin: 40px auto;
    max-width: 500px;
    text-align: left;
    border: 1px solid #e2e8f0;
}

.next-steps h3 {
    margin-bottom: 20px;
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.next-steps ul {
    list-style: none;
}

.next-steps li {
    padding: 12px 0;
    color: #475569;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.next-steps .step-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.cta-button {
    background: linear-gradient(135deg, #4285f4, #3367d6);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: linear-gradient(135deg, #3367d6, #2952cc);
    box-shadow: 0 8px 24px rgba(66, 133, 244, 0.3);
    transform: translateY(-3px);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px 20px;
    color: #64748b;
}

.footer p {
    font-size: 14px;
    margin-bottom: 16px;
}

.footer a {
    color: #4285f4;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 2px 4px;
    border-radius: 4px;
}

.footer a:hover {
    color: #3367d6;
    background: rgba(66, 133, 244, 0.05);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
}

.footer-link {
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #4285f4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-container {
        padding: 20px 16px;
    }

    .hero-section,
    .auth-section,
    .why-section,
    .tutorial-section,
    .success-section {
        padding: 40px 24px;
        margin-bottom: 24px;
    }

    h1 {
        font-size: 28px;
    }

    .auth-section h2,
    .why-section h2,
    .tutorial-section h2 {
        font-size: 24px;
        margin-bottom: 32px;
    }

    .tagline {
        font-size: 16px;
    }

    .benefits {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .benefit-card {
        padding: 32px 20px;
    }

    .auth-container {
        max-width: 100%;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* Medium screens - show 2 cards per row */
@media (max-width: 1024px) and (min-width: 769px) {
    .benefits {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    /* Center the third card when there are 3 items in 2-column grid */
    .benefit-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 480px;
        margin: 0 auto;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .welcome-container {
        max-width: 1000px;
    }
    
    .hero-section,
    .auth-section,
    .why-section,
    .tutorial-section {
        padding: 60px 50px;
    }
}