/* Welcome Notification & Auth Modal Styles */
.welcome-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(26, 54, 93, 0.3);
    border: 1px solid rgba(26, 54, 93, 0.2);
    z-index: 10000;
    display: none;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: slideIn 0.5s ease-out;
}

.welcome-content {
    position: relative;
}

.welcome-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: wave 1s ease-in-out infinite;
}

.welcome-notification h3 {
    color: #1a202c;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1a365d, #2b6cb0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-notification p {
    color: #2d3748;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.welcome-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #4a5568;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: rgba(26, 54, 93, 0.1);
    color: #1a365d;
    transform: scale(1.1);
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Auth Modal Styles */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal.show {
    opacity: 1;
    visibility: visible;
}

.auth-modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 70px rgba(26, 54, 93, 0.4);
    border: 1px solid rgba(26, 54, 93, 0.15);
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.auth-modal.show .auth-modal-content {
    transform: scale(1);
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(26, 54, 93, 0.15);
    padding-bottom: 1rem;
}

.auth-header h2 {
    color: #1a202c;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #1a365d, #2b6cb0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #4a5568;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(26, 54, 93, 0.1);
    color: #1a365d;
    transform: scale(1.1);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #1a202c;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    padding: 1rem;
    border: 2px solid rgba(26, 54, 93, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #1a365d;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.2);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2d3748;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1a365d;
}

.forgot-link {
    color: #2b6cb0;
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
    color: #1a365d;
}

.full-width {
    width: 100%;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(26, 54, 93, 0.3), transparent);
}

.auth-divider span {
    padding: 0 1rem;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.8);
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-social {
    padding: 1rem;
    border: 2px solid rgba(26, 54, 93, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    color: #1a202c;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
}

.btn-google:hover {
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white;
    border-color: #4285f4;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(66, 133, 244, 0.3);
}

.btn-facebook:hover {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    color: white;
    border-color: #1877f2;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.3);
}

.auth-switch {
    text-align: center;
    color: #2d3748;
    margin: 1.5rem 0 0;
    font-size: 0.9rem;
}

.auth-switch a {
    color: #2b6cb0;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
    color: #1a365d;
}

/* Mobile Responsive Auth Styles */
@media (max-width: 768px) {
    .welcome-notification {
        padding: 1.5rem;
        border-radius: 16px;
        width: 95%;
        max-width: 350px;
    }
    
    .auth-modal-content {
        padding: 1.5rem;
        border-radius: 16px;
        margin: 1rem;
        width: 95%;
        max-width: 400px;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
    
    .form-group input {
        padding: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
        -webkit-appearance: none;
        border-radius: 12px;
    }
    
    .btn, .btn-primary, .btn-secondary {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 12px;
        min-height: 48px; /* Touch target size */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn-close, .modal-close {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .social-login {
        gap: 0.75rem;
        flex-direction: column;
    }
    
    .btn-social {
        padding: 1rem;
        font-size: 1rem;
        width: 100%;
        min-height: 48px;
        touch-action: manipulation;
    }
    
    .welcome-actions {
        gap: 1rem;
        flex-direction: column;
    }
    
    .welcome-actions .btn {
        width: 100%;
        max-width: 250px;
    }
    
    /* Mobile navigation auth buttons */
    .auth-buttons {
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }
    
    .btn-login, .btn-signup, .btn-logout {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        border-radius: 8px;
        border: none;
        cursor: pointer;
        touch-action: manipulation;
        min-height: 40px;
    }
    
    .btn-login, .btn-signup {
        background: linear-gradient(135deg, #10b981, #059669);
        color: white;
    }
    
    .btn-logout {
        background: rgba(239, 68, 68, 0.9);
        color: white;
    }
    
    .user-info {
        color: #059669;
        font-weight: 600;
        font-size: 0.9rem;
    }
}