/* Authentication Pages Styles */

.auth-page-wrapper {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.auth-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    z-index: 1;
}

.auth-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/IMG_0076.PNG');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.auth-branding-section {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.branding-content {
    max-width: 500px;
}

.auth-logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.auth-logo-mobile {
    width: 80px;
    height: auto;
}

.brand-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.brand-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.features-preview {
    text-align: left;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    opacity: 0.95;
}

.feature-icon {
    width: 24px;
    margin-right: 1rem;
    color: #ffc107;
}

.decorative-image,
.decorative-images {
    position: relative;
    margin-top: 2rem;
}

.mobile-preview {
    max-width: 200px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.preview-image {
    max-width: 250px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.preview-image-small {
    max-width: 120px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.floating-image {
    animation: float 4s ease-in-out infinite;
}

.floating-image-1 {
    animation: float 4s ease-in-out infinite;
}

.floating-image-2 {
    animation: float 4s ease-in-out infinite 2s;
    position: absolute;
    top: 20px;
    right: 20px;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(2deg); 
    }
    50% { 
        transform: translateY(-10px) rotate(-2deg); 
    }
}

.auth-form-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.auth-form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 500px;
}

.mobile-logo {
    margin-bottom: 1.5rem;
}

.auth-form-header {
    margin-bottom: 2rem;
}

.auth-title {
    color: #333;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 1rem;
    color: #666;
}

.auth-input {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.auth-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: #fff;
}

.form-floating > label {
    color: #666;
    font-weight: 500;
}

.form-floating > .auth-input:focus ~ label,
.form-floating > .auth-input:not(:placeholder-shown) ~ label {
    color: #667eea;
}

.auth-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.auth-links {
    margin-top: 1.5rem;
}

.auth-link {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #667eea;
    text-decoration: none;
}

.auth-link-primary {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link-primary:hover {
    color: #5a6fd8;
    text-decoration: none;
}

.auth-alert {
    border-radius: 12px;
    border: none;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .auth-form-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .auth-page-wrapper {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
}

@media (max-width: 767px) {
    .auth-form-card {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }
    
    .auth-submit-btn {
        padding: 0.875rem 1.5rem;
    }
}

/* Animation for form elements */
.auth-form .form-floating {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.auth-form .form-floating:nth-child(1) { animation-delay: 0.1s; }
.auth-form .form-floating:nth-child(2) { animation-delay: 0.2s; }
.auth-form .form-floating:nth-child(3) { animation-delay: 0.3s; }
.auth-form .form-floating:nth-child(4) { animation-delay: 0.4s; }

.auth-submit-btn {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
    transform: translateY(20px);
}

.divider-text {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
    transform: translateY(20px);
}

.auth-strava-btn {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
    transform: translateY(20px);
    background-color: #fc4c02 !important;
    border-color: #fc4c02 !important;
    padding: 1rem 2rem !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(252, 76, 2, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
}

.auth-strava-btn:hover {
    background-color: #e04301 !important;
    border-color: #e04301 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(252, 76, 2, 0.4);
}

.auth-strava-btn img {
    height: 30pt;
    width: auto;
}

.auth-links {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Brand consistency */
.text-primary {
    color: #667eea !important;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    border-color: transparent;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}
