/* Tennis Coach AI - FastAPI Version Styles */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800;900&display=swap');

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

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: transparent;
    min-height: 100vh;
    color: #374151;
    line-height: 1.6;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    padding-bottom: 25vh;
    position: relative;
    overflow: hidden;
}

/* Welcome container styling */
.welcome-container {
    text-align: center;
    padding: 1.5rem 1rem;
    background: transparent;
    color: white;
    margin-bottom: 2rem;
    position: relative;
    max-width: 400px;
    width: 100%;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .container {
        padding-bottom: 20vh;
    }
    
    .welcome-container {
        padding: 1rem 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .welcome-title {
        font-size: 2.2rem !important;
    }
    
    .welcome-subtitle {
        font-size: 1.1rem !important;
    }
}





.welcome-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 1), 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.welcome-subtitle {
    font-size: 1.3rem;
    opacity: 1;
    position: relative;
    z-index: 2;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 1), 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Login container */
.login-container {
    background: transparent;
    padding: 2.5rem;
    max-width: 450px;
    width: 100%;
    text-align: center;
}



.login-container p {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.login-form {
    width: 100%;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-input {
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    font-size: 1.1rem;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.email-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.login-btn {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.login-btn:active {
    transform: translateY(-1px);
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    border: 1px solid #fecaca;
    font-weight: 500;
}

/* Tennis court background image with cache busting */
.tennis-court-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/tennis-court-final-1753988760.jpg') center center/cover no-repeat;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .welcome-container {
        padding: 2rem 1.5rem;
    }
    
    .welcome-title {
        font-size: 2.2rem;
    }
    
    .welcome-subtitle {
        font-size: 1.1rem;
    }
    
    .login-container {
        padding: 2rem;
    }
    
    .input-group {
        flex-direction: column;
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Apply entrance animations */
.welcome-container {
    animation: slideUp 0.8s ease;
}

.login-container {
    animation: slideUp 0.8s ease 0.2s both;
}