/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
}

/* Container */
.container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* Welcome Card */
.welcome-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 
                0 10px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.welcome-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 
                0 15px 30px rgba(0, 0, 0, 0.08);
}

/* Logo Section */
.logo-section {
    margin-bottom: 40px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #4285F4, #34A853);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.3);
}

.logo-icon .material-icons {
    font-size: 40px;
    color: white;
}

.app-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.app-subtitle {
    font-size: 16px;
    color: #666;
    font-weight: 400;
    line-height: 1.4;
}

/* Welcome Message */
.welcome-message {
    margin-bottom: 40px;
}

.welcome-message h2 {
    font-size: 24px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.welcome-message p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
}

/* Authentication Section */
.auth-section {
    margin-bottom: 30px;
}

/* Google Sign-in Buttons */
.google-signin-btn {
    width: 100%;
    height: 56px;
    border: 1px solid #dadce0;
    border-radius: 12px;
    background: white;
    color: #3c4043;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.google-signin-btn:hover {
    background: #f8f9fa;
    border-color: #c5c7ca;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.google-signin-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.google-signin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.5s ease;
}

.google-signin-btn:hover::before {
    left: 100%;
}

.google-icon {
    flex-shrink: 0;
}

/* Login Button Specific Styles */
.login-btn {
    background: linear-gradient(135deg, #4285F4, #1976D2);
    color: white;
    border: none;
}

.login-btn:hover {
    background: linear-gradient(135deg, #3367D6, #1565C0);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(66, 133, 244, 0.3);
}

.login-btn .google-icon path {
    fill: white !important;
}

/* Signup Button Specific Styles */
.signup-btn {
    border: 2px solid #4285F4;
    background: white;
    color: #4285F4;
}

.signup-btn:hover {
    background: #f1f3f4;
    border-color: #1976D2;
    color: #1976D2;
}

/* Footer */
.footer {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.link {
    color: #4285F4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.link:hover {
    color: #1976D2;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .welcome-card {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .app-title {
        font-size: 28px;
    }
    
    .welcome-message h2 {
        font-size: 22px;
    }
    
    .welcome-message p {
        font-size: 15px;
    }
    
    .google-signin-btn {
        height: 52px;
        font-size: 15px;
    }
    
    .logo-icon {
        width: 70px;
        height: 70px;
    }
    
    .logo-icon .material-icons {
        font-size: 35px;
    }
}

@media (max-width: 320px) {
    .welcome-card {
        padding: 25px 15px;
    }
    
    .app-title {
        font-size: 24px;
    }
    
    .google-signin-btn {
        height: 48px;
        font-size: 14px;
        gap: 10px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .welcome-card,
    .google-signin-btn,
    .link {
        transition: none;
    }
    
    .welcome-card:hover {
        transform: none;
    }
    
    .google-signin-btn:hover {
        transform: none;
    }
}

/* Focus States for Accessibility */
.google-signin-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.3);
}

.link:focus {
    outline: 2px solid #4285F4;
    outline-offset: 2px;
}

/* Loading State */
.google-signin-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.google-signin-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #4285F4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
