/* Playful Authentication Button Styles */
.auth-btn {
    position: relative;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: inherit;
    min-width: 140px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform-origin: center;
}

/* Playful shape variations */
.login-btn {
    border-radius: 25px 8px 25px 8px;
    background: linear-gradient(135deg, #BDCF00 0%, #9BB800 50%, #BDCF00 100%);
    color: #fff;
    margin-right: 12px;
    animation: gentle-bounce 3s ease-in-out infinite;
}

.register-btn {
    border-radius: 35px 15px 35px 15px;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 50%, #2c2c2c 100%);
    color: #fff;
    animation: gentle-wiggle 4s ease-in-out infinite;
    border: 2px solid #333;
}

/* Fun animations */
@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
}

@keyframes gentle-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
}

/* Hover effects */
.login-btn:hover {
    background: linear-gradient(135deg, #9BB800 0%, #7A9600 50%, #9BB800 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(189, 207, 0, 0.4);
    color: #fff;
    border-radius: 30px;
    animation: none;
}

.register-btn:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 50%, #1a1a1a 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    color: #fff;
    border-radius: 40px 20px 40px 20px;
    animation: none;
    border-color: #000;
}

/* Icon styles */
.auth-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.auth-btn:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Sparkle effect */
.auth-btn::after {
    content: '✨';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    animation: sparkle 2s ease-in-out infinite;
}

.auth-btn:hover::after {
    opacity: 1;
    transform: scale(1.2);
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.auth-btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: transform 0.1s;
}

/* Legacy support for existing auth-buttons class */
.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.auth-buttons .vs-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.auth-buttons .vs-btn--outline {
    background: transparent;
    color: #BDCF00;
    border: 2px solid #BDCF00;
}

.auth-buttons .vs-btn--outline:hover {
    background: #BDCF00;
    color: #fff;
}

/* User Menu Styles */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.user-menu-toggle:hover {
    background: rgba(189, 207, 0, 0.1);
}

.user-menu .dropdown-menu {
    min-width: 200px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px 0;
    margin-top: 10px;
}

.user-menu .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.user-menu .dropdown-item:hover {
    background: rgba(189, 207, 0, 0.1);
    color: #BDCF00;
}

.user-menu .dropdown-item i {
    width: 16px;
    color: #BDCF00;
}

/* Authentication Modal Styles */
#authModal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

#authModal .modal-header {
    border-bottom: 1px solid #eee;
    padding: 20px 30px;
}

#authModal .modal-body {
    padding: 30px;
}

#authModal .form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

#authModal .form-control:focus {
    border-color: #BDCF00;
    box-shadow: 0 0 0 0.2rem rgba(189, 207, 0, 0.25);
}

#authModal .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

#authModal .vs-btn {
    width: 100%;
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
}

/* Guest Access Popup Styles */
.guest-access-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.popup-content h4 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.popup-content p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.5;
}

.popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.popup-buttons .vs-btn {
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    min-width: 150px;
}

/* Role-based Access Indicators */
.role-indicator {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 10px;
}

.role-indicator.school {
    background: #e3f2fd;
    color: #1976d2;
}

.role-indicator.association {
    background: #f3e5f5;
    color: #7b1fa2;
}

.role-indicator.individual {
    background: #e8f5e8;
    color: #388e3c;
}

.role-indicator.guest {
    background: #fff3e0;
    color: #f57c00;
}

/* Spectacle Access Control */
.spectacle-item.restricted {
    opacity: 0.5;
    pointer-events: none;
}

.spectacle-item.restricted::after {
    content: "Accès restreint";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .auth-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .popup-content {
        padding: 30px 20px;
    }
    
    .popup-buttons {
        flex-direction: column;
    }
    
    .popup-buttons .vs-btn {
        width: 100%;
    }
}
