/* Password Protection Overlay */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Decimal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
}

.password-container {
    text-align: center;
    max-width: 500px;
    width: 90%;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.password-content h1 {
    color: white;
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.password-content h2 {
    color: #cccccc;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.password-content > p {
    color: #999999;
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-style: italic;
}

.password-form {
    margin: 40px 0;
}

.password-form input {
    width: 100%;
    max-width: 300px;
    padding: 18px 24px;
    font-size: 24px;
    text-align: center;
    letter-spacing: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    margin-bottom: 20px;
    font-family: 'Decimal', monospace;
    transition: all 0.3s ease;
}

.password-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    font-size: 16px;
}

.password-form input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.password-form button {
    width: 100%;
    max-width: 300px;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Decimal', sans-serif;
}

.password-form button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.password-form button:active {
    transform: translateY(0);
}

.password-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 20px;
    font-style: italic;
}

.error-message {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 15px;
    min-height: 20px;
    font-weight: 500;
}

.password-overlay.hidden {
    display: none;
}

.password-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.6) 0%, rgba(45, 45, 45, 0.6) 100%);
    z-index: 1;
}

.password-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    animation: passwordVideoTease 3s ease-in-out 4;
}

@keyframes passwordVideoTease {
    0% { opacity: 0; }
    50% { opacity: 0.25; }
    100% { opacity: 0; }
}

/* Success Animation */
.password-overlay.unlocking {
    animation: fadeOut 0.8s ease-in-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.05);
    }
}

.password-form.success input {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.2);
}

.password-form.success button {
    background: rgba(78, 205, 196, 0.3);
    border-color: #4ecdc4;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .password-container {
        padding: 40px 20px;
        margin: 20px;
    }
    
    .password-content h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .password-content h2 {
        font-size: 1.2rem;
    }
    
    .password-form input {
        font-size: 20px;
        letter-spacing: 6px;
        padding: 16px 20px;
    }
    
    .password-form button {
        padding: 16px 20px;
        font-size: 14px;
    }
}
